Class: MetarExRequest
- Inherits:
-
Object
- Object
- MetarExRequest
- Defined in:
- lib/FlightXML2REST.rb
Overview
MetarEx
Instance Attribute Summary collapse
-
#airport ⇒ Object
Returns the value of attribute airport.
-
#howMany ⇒ Object
Returns the value of attribute howMany.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#startTime ⇒ Object
Returns the value of attribute startTime.
Instance Method Summary collapse
-
#initialize(airport = nil, startTime = nil, howMany = nil, offset = nil) ⇒ MetarExRequest
constructor
A new instance of MetarExRequest.
- #post ⇒ Object
Constructor Details
#initialize(airport = nil, startTime = nil, howMany = nil, offset = nil) ⇒ MetarExRequest
Returns a new instance of MetarExRequest.
1877 1878 1879 1880 1881 1882 |
# File 'lib/FlightXML2REST.rb', line 1877 def initialize(airport = nil, startTime = nil, howMany = nil, offset = nil) @airport = airport @startTime = startTime @howMany = howMany @offset = offset end |
Instance Attribute Details
#airport ⇒ Object
Returns the value of attribute airport.
1876 1877 1878 |
# File 'lib/FlightXML2REST.rb', line 1876 def airport @airport end |
#howMany ⇒ Object
Returns the value of attribute howMany.
1876 1877 1878 |
# File 'lib/FlightXML2REST.rb', line 1876 def howMany @howMany end |
#offset ⇒ Object
Returns the value of attribute offset.
1876 1877 1878 |
# File 'lib/FlightXML2REST.rb', line 1876 def offset @offset end |
#startTime ⇒ Object
Returns the value of attribute startTime.
1876 1877 1878 |
# File 'lib/FlightXML2REST.rb', line 1876 def startTime @startTime end |
Instance Method Details
#post ⇒ Object
1883 1884 1885 |
# File 'lib/FlightXML2REST.rb', line 1883 def post "airport=#@airport&startTime=#@startTime&howMany=#@howMany&offset=#@offset" end |