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.
2047 2048 2049 2050 |
# File 'lib/FlightXML2REST.rb', line 2047 def initialize(destination = nil, origin = nil) @destination = destination @origin = origin end |
Instance Attribute Details
#destination ⇒ Object
Returns the value of attribute destination.
2046 2047 2048 |
# File 'lib/FlightXML2REST.rb', line 2046 def destination @destination end |
#origin ⇒ Object
Returns the value of attribute origin.
2046 2047 2048 |
# File 'lib/FlightXML2REST.rb', line 2046 def origin @origin end |
Instance Method Details
#post ⇒ Object
2051 2052 2053 |
# File 'lib/FlightXML2REST.rb', line 2051 def post "destination=#@destination&origin=#@origin" end |