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.



1915
1916
1917
1918
1919
1920
1921
1922
# File 'lib/FlightXML2REST.rb', line 1915

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.



1914
1915
1916
# File 'lib/FlightXML2REST.rb', line 1914

def destination
  @destination
end

#howManyObject

Returns the value of attribute howMany.



1914
1915
1916
# File 'lib/FlightXML2REST.rb', line 1914

def howMany
  @howMany
end

#maxDepartureAgeObject

Returns the value of attribute maxDepartureAge.



1914
1915
1916
# File 'lib/FlightXML2REST.rb', line 1914

def maxDepartureAge
  @maxDepartureAge
end

#maxFileAgeObject

Returns the value of attribute maxFileAge.



1914
1915
1916
# File 'lib/FlightXML2REST.rb', line 1914

def maxFileAge
  @maxFileAge
end

#offsetObject

Returns the value of attribute offset.



1914
1915
1916
# File 'lib/FlightXML2REST.rb', line 1914

def offset
  @offset
end

#originObject

Returns the value of attribute origin.



1914
1915
1916
# File 'lib/FlightXML2REST.rb', line 1914

def origin
  @origin
end

Instance Method Details

#postObject



1923
1924
1925
# File 'lib/FlightXML2REST.rb', line 1923

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