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.



1711
1712
1713
1714
1715
1716
# File 'lib/FlightXML2REST.rb', line 1711

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.



1710
1711
1712
# File 'lib/FlightXML2REST.rb', line 1710

def airport
  @airport
end

#howManyObject

Returns the value of attribute howMany.



1710
1711
1712
# File 'lib/FlightXML2REST.rb', line 1710

def howMany
  @howMany
end

#offsetObject

Returns the value of attribute offset.



1710
1711
1712
# File 'lib/FlightXML2REST.rb', line 1710

def offset
  @offset
end

#startTimeObject

Returns the value of attribute startTime.



1710
1711
1712
# File 'lib/FlightXML2REST.rb', line 1710

def startTime
  @startTime
end

Instance Method Details

#postObject



1717
1718
1719
# File 'lib/FlightXML2REST.rb', line 1717

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