Class: EnrouteRequest

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

Overview

Enroute

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(airport = nil, filter = nil, howMany = nil, offset = nil) ⇒ EnrouteRequest

Returns a new instance of EnrouteRequest.



812
813
814
815
816
817
# File 'lib/FlightXML2REST.rb', line 812

def initialize(airport = nil, filter = nil, howMany = nil, offset = nil)
  @airport = airport
  @filter = filter
  @howMany = howMany
  @offset = offset
end

Instance Attribute Details

#airportObject

Returns the value of attribute airport.



811
812
813
# File 'lib/FlightXML2REST.rb', line 811

def airport
  @airport
end

#filterObject

Returns the value of attribute filter.



811
812
813
# File 'lib/FlightXML2REST.rb', line 811

def filter
  @filter
end

#howManyObject

Returns the value of attribute howMany.



811
812
813
# File 'lib/FlightXML2REST.rb', line 811

def howMany
  @howMany
end

#offsetObject

Returns the value of attribute offset.



811
812
813
# File 'lib/FlightXML2REST.rb', line 811

def offset
  @offset
end

Instance Method Details

#postObject



818
819
820
# File 'lib/FlightXML2REST.rb', line 818

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