Class: RoutesBetweenAirportsRequest

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

Overview

RoutesBetweenAirports

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination = nil, origin = nil) ⇒ RoutesBetweenAirportsRequest

Returns a new instance of RoutesBetweenAirportsRequest.



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

def initialize(destination = nil, origin = nil)
  @destination = destination
  @origin = origin
end

Instance Attribute Details

#destinationObject

Returns the value of attribute destination.



1869
1870
1871
# File 'lib/FlightXML2REST.rb', line 1869

def destination
  @destination
end

#originObject

Returns the value of attribute origin.



1869
1870
1871
# File 'lib/FlightXML2REST.rb', line 1869

def origin
  @origin
end

Instance Method Details

#postObject



1874
1875
1876
# File 'lib/FlightXML2REST.rb', line 1874

def post
  "destination=#@destination&origin=#@origin"
end