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.



2047
2048
2049
2050
# File 'lib/FlightXML2REST.rb', line 2047

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

Instance Attribute Details

#destinationObject

Returns the value of attribute destination.



2046
2047
2048
# File 'lib/FlightXML2REST.rb', line 2046

def destination
  @destination
end

#originObject

Returns the value of attribute origin.



2046
2047
2048
# File 'lib/FlightXML2REST.rb', line 2046

def origin
  @origin
end

Instance Method Details

#postObject



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

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