Class: MetarExResults
- Inherits:
-
Object
- Object
- MetarExResults
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#metarExResult ⇒ Object
Returns the value of attribute metarExResult.
Instance Method Summary collapse
-
#initialize(metarExResult = nil) ⇒ MetarExResults
constructor
A new instance of MetarExResults.
Constructor Details
#initialize(metarExResult = nil) ⇒ MetarExResults
Returns a new instance of MetarExResults.
1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 |
# File 'lib/FlightXML2REST.rb', line 1724 def initialize( = nil) = JSON.parse()['MetarExResult'] = ArrayOfMetarStruct.new([], ['next_offset']) ['metar'].each do || . << MetarStruct.new(['airport'], ['cloud_altitude'], ['cloud_friendly'], ['cloud_type'], ['conditions'], ['pressure'], ['raw_data'], ['temp_air'], ['temp_dewpoint'], ['temp_relhum'], ['time'], ['visibility'], ['wind_direction'], ['wind_friendly'], ['wind_speed'], ['wind_speed_gust'] ) end end |
Instance Attribute Details
#metarExResult ⇒ Object
Returns the value of attribute metarExResult.
1723 1724 1725 |
# File 'lib/FlightXML2REST.rb', line 1723 def end |