Class: RoutesBetweenAirportsExRequest

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

Overview

RoutesBetweenAirportsEx

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination = nil, howMany = nil, maxDepartureAge = nil, maxFileAge = nil, offset = nil, origin = nil) ⇒ RoutesBetweenAirportsExRequest

Returns a new instance of RoutesBetweenAirportsExRequest.



2101
2102
2103
2104
2105
2106
2107
2108
# File 'lib/FlightXML2REST.rb', line 2101

def initialize(destination = nil, howMany = nil, maxDepartureAge = nil, maxFileAge = nil, offset = nil, origin = nil)
  @destination = destination
  @howMany = howMany
  @maxDepartureAge = maxDepartureAge
  @maxFileAge = maxFileAge
  @offset = offset
  @origin = origin
end

Instance Attribute Details

#destinationObject

Returns the value of attribute destination.



2100
2101
2102
# File 'lib/FlightXML2REST.rb', line 2100

def destination
  @destination
end

#howManyObject

Returns the value of attribute howMany.



2100
2101
2102
# File 'lib/FlightXML2REST.rb', line 2100

def howMany
  @howMany
end

#maxDepartureAgeObject

Returns the value of attribute maxDepartureAge.



2100
2101
2102
# File 'lib/FlightXML2REST.rb', line 2100

def maxDepartureAge
  @maxDepartureAge
end

#maxFileAgeObject

Returns the value of attribute maxFileAge.



2100
2101
2102
# File 'lib/FlightXML2REST.rb', line 2100

def maxFileAge
  @maxFileAge
end

#offsetObject

Returns the value of attribute offset.



2100
2101
2102
# File 'lib/FlightXML2REST.rb', line 2100

def offset
  @offset
end

#originObject

Returns the value of attribute origin.



2100
2101
2102
# File 'lib/FlightXML2REST.rb', line 2100

def origin
  @origin
end

Instance Method Details

#postObject



2109
2110
2111
# File 'lib/FlightXML2REST.rb', line 2109

def post
  "destination=#@destination&howMany=#@howMany&maxDepartureAge=#@maxDepartureAge&maxFileAge=#@maxFileAge&offset=#@offset&origin=#@origin"
end