Class: RoutesBetweenAirportsRequest
- Inherits:
-
Object
- Object
- RoutesBetweenAirportsRequest
- Defined in:
- lib/FlightXML2REST.rb
Overview
RoutesBetweenAirports
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#origin ⇒ Object
Returns the value of attribute origin.
Instance Method Summary collapse
-
#initialize(destination = nil, origin = nil) ⇒ RoutesBetweenAirportsRequest
constructor
A new instance of RoutesBetweenAirportsRequest.
- #post ⇒ Object
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
#destination ⇒ Object
Returns the value of attribute destination.
2050 2051 2052 |
# File 'lib/FlightXML2REST.rb', line 2050 def destination @destination end |
#origin ⇒ Object
Returns the value of attribute origin.
2050 2051 2052 |
# File 'lib/FlightXML2REST.rb', line 2050 def origin @origin end |
Instance Method Details
#post ⇒ Object
2055 2056 2057 |
# File 'lib/FlightXML2REST.rb', line 2055 def post "destination=#@destination&origin=#@origin" end |