Class: WrfLibrary::JsonConverter::HourlyJsonConverter
- Inherits:
-
WrfStationJsonConverter
- Object
- BaseStationJsonConverter
- WrfStationJsonConverter
- WrfLibrary::JsonConverter::HourlyJsonConverter
- Defined in:
- lib/wrf_library/json_converter/hourly_converter.rb
Overview
Child class to generate valid json output for the result data of a given wrf meteogram result already stored in a data repository
Direct Known Subclasses
Instance Attribute Summary collapse
-
#handler ⇒ Wrf::Handler
readonly
private
The wrf handler with the data.
-
#measurand ⇒ Symbol
readonly
private
The used measurand.
Attributes inherited from BaseStationJsonConverter
Instance Method Summary collapse
-
#initialize(measurand, handler) ⇒ HourlyJsonConverter
constructor
initialization.
Methods inherited from WrfStationJsonConverter
#add_additions, #generate_grid_coordinates, #generate_grid_data
Methods inherited from BaseStationJsonConverter
#add_additions, #convert, #generate_data_values, #generate_meta_hash, #generate_station_hash
Constructor Details
#initialize(measurand, handler) ⇒ HourlyJsonConverter
initialization
14 15 16 17 18 |
# File 'lib/wrf_library/json_converter/hourly_converter.rb', line 14 def initialize(measurand, handler) super(handler.data_repository) @handler = handler @measurand = measurand end |
Instance Attribute Details
#handler ⇒ Wrf::Handler (readonly, private)
Returns the wrf handler with the data.
23 24 25 |
# File 'lib/wrf_library/json_converter/hourly_converter.rb', line 23 def handler @handler end |
#measurand ⇒ Symbol (readonly, private)
Returns the used measurand.
25 26 27 |
# File 'lib/wrf_library/json_converter/hourly_converter.rb', line 25 def measurand @measurand end |