Class: MetarExRequest

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

Overview

MetarEx

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#airportObject

Returns the value of attribute airport.



1876
1877
1878
# File 'lib/FlightXML2REST.rb', line 1876

def airport
  @airport
end

#howManyObject

Returns the value of attribute howMany.



1876
1877
1878
# File 'lib/FlightXML2REST.rb', line 1876

def howMany
  @howMany
end

#offsetObject

Returns the value of attribute offset.



1876
1877
1878
# File 'lib/FlightXML2REST.rb', line 1876

def offset
  @offset
end

#startTimeObject

Returns the value of attribute startTime.



1876
1877
1878
# File 'lib/FlightXML2REST.rb', line 1876

def startTime
  @startTime
end

Instance Method Details

#postObject



1883
1884
1885
# File 'lib/FlightXML2REST.rb', line 1883

def post
  "airport=#@airport&startTime=#@startTime&howMany=#@howMany&offset=#@offset"
end