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.



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

#airportObject

Returns the value of attribute airport.



1872
1873
1874
# File 'lib/FlightXML2REST.rb', line 1872

def airport
  @airport
end

#howManyObject

Returns the value of attribute howMany.



1872
1873
1874
# File 'lib/FlightXML2REST.rb', line 1872

def howMany
  @howMany
end

#offsetObject

Returns the value of attribute offset.



1872
1873
1874
# File 'lib/FlightXML2REST.rb', line 1872

def offset
  @offset
end

#startTimeObject

Returns the value of attribute startTime.



1872
1873
1874
# File 'lib/FlightXML2REST.rb', line 1872

def startTime
  @startTime
end

Instance Method Details

#postObject



1879
1880
1881
# File 'lib/FlightXML2REST.rb', line 1879

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