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.
1873 1874 1875 1876 1877 1878 |
# File 'lib/FlightXML2REST.rb', line 1873 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.
1872 1873 1874 |
# File 'lib/FlightXML2REST.rb', line 1872 def airport @airport end |
#howMany ⇒ Object
Returns the value of attribute howMany.
1872 1873 1874 |
# File 'lib/FlightXML2REST.rb', line 1872 def howMany @howMany end |
#offset ⇒ Object
Returns the value of attribute offset.
1872 1873 1874 |
# File 'lib/FlightXML2REST.rb', line 1872 def offset @offset end |
#startTime ⇒ Object
Returns the value of attribute startTime.
1872 1873 1874 |
# File 'lib/FlightXML2REST.rb', line 1872 def startTime @startTime end |
Instance Method Details
#post ⇒ Object
1879 1880 1881 |
# File 'lib/FlightXML2REST.rb', line 1879 def post "airport=#@airport&startTime=#@startTime&howMany=#@howMany&offset=#@offset" end |