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.



2051
2052
2053
2054
# File 'lib/FlightXML2REST.rb', line 2051

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

Instance Attribute Details

#destinationObject

Returns the value of attribute destination.



2050
2051
2052
# File 'lib/FlightXML2REST.rb', line 2050

def destination
  @destination
end

#originObject

Returns the value of attribute origin.



2050
2051
2052
# File 'lib/FlightXML2REST.rb', line 2050

def origin
  @origin
end

Instance Method Details

#postObject



2055
2056
2057
# File 'lib/FlightXML2REST.rb', line 2055

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