Class: MetarStruct

Inherits:
Object
  • Object
show all
Defined in:
lib/FlightXML2REST.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(airport = nil, cloud_altitude = nil, cloud_friendly = nil, cloud_type = nil, conditions = nil, pressure = nil, raw_data = nil, temp_air = nil, temp_dewpoint = nil, temp_relhum = nil, time = nil, visibility = nil, wind_direction = nil, wind_friendly = nil, wind_speed = nil, wind_speed_gust = nil) ⇒ MetarStruct

Returns a new instance of MetarStruct.



1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
# File 'lib/FlightXML2REST.rb', line 1948

def initialize(airport = nil,
               cloud_altitude = nil,
               cloud_friendly = nil,
               cloud_type = nil,
               conditions = nil,
               pressure = nil,
               raw_data = nil,
               temp_air = nil,
               temp_dewpoint = nil,
               temp_relhum = nil,
               time = nil,
               visibility = nil,
               wind_direction = nil,
               wind_friendly = nil,
               wind_speed = nil,
               wind_speed_gust = nil
              )
  @airport = airport
  @cloud_altitude = cloud_altitude
  @cloud_friendly = cloud_friendly
  @cloud_type = cloud_type
  @conditions = conditions
  @pressure = pressure
  @raw_data = raw_data
  @temp_air = temp_air
  @temp_dewpoint = temp_dewpoint
  @temp_relhum = temp_relhum
  @time = time
  @visibility = visibility
  @wind_direction = wind_direction
  @wind_friendly = wind_friendly
  @wind_speed = wind_speed
  @wind_speed_gust = wind_speed_gust
end

Instance Attribute Details

#airportObject

Returns the value of attribute airport.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def airport
  @airport
end

#cloud_altitudeObject

Returns the value of attribute cloud_altitude.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def cloud_altitude
  @cloud_altitude
end

#cloud_friendlyObject

Returns the value of attribute cloud_friendly.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def cloud_friendly
  @cloud_friendly
end

#cloud_typeObject

Returns the value of attribute cloud_type.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def cloud_type
  @cloud_type
end

#conditionsObject

Returns the value of attribute conditions.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def conditions
  @conditions
end

#pressureObject

Returns the value of attribute pressure.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def pressure
  @pressure
end

#raw_dataObject

Returns the value of attribute raw_data.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def raw_data
  @raw_data
end

#temp_airObject

Returns the value of attribute temp_air.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def temp_air
  @temp_air
end

#temp_dewpointObject

Returns the value of attribute temp_dewpoint.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def temp_dewpoint
  @temp_dewpoint
end

#temp_relhumObject

Returns the value of attribute temp_relhum.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def temp_relhum
  @temp_relhum
end

#timeObject

Returns the value of attribute time.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def time
  @time
end

#visibilityObject

Returns the value of attribute visibility.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def visibility
  @visibility
end

#wind_directionObject

Returns the value of attribute wind_direction.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def wind_direction
  @wind_direction
end

#wind_friendlyObject

Returns the value of attribute wind_friendly.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def wind_friendly
  @wind_friendly
end

#wind_speedObject

Returns the value of attribute wind_speed.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def wind_speed
  @wind_speed
end

#wind_speed_gustObject

Returns the value of attribute wind_speed_gust.



1931
1932
1933
# File 'lib/FlightXML2REST.rb', line 1931

def wind_speed_gust
  @wind_speed_gust
end