Class: DecodeRouteRequest
- Inherits:
-
Object
- Object
- DecodeRouteRequest
- Defined in:
- lib/FlightXML2REST.rb
Overview
DecodeRoute
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#route ⇒ Object
Returns the value of attribute route.
Instance Method Summary collapse
-
#initialize(destination = nil, origin = nil, route = nil) ⇒ DecodeRouteRequest
constructor
A new instance of DecodeRouteRequest.
- #post ⇒ Object
Constructor Details
#initialize(destination = nil, origin = nil, route = nil) ⇒ DecodeRouteRequest
Returns a new instance of DecodeRouteRequest.
596 597 598 599 600 |
# File 'lib/FlightXML2REST.rb', line 596 def initialize(destination = nil, origin = nil, route = nil) @destination = destination @origin = origin @route = route end |
Instance Attribute Details
#destination ⇒ Object
Returns the value of attribute destination.
595 596 597 |
# File 'lib/FlightXML2REST.rb', line 595 def destination @destination end |
#origin ⇒ Object
Returns the value of attribute origin.
595 596 597 |
# File 'lib/FlightXML2REST.rb', line 595 def origin @origin end |
#route ⇒ Object
Returns the value of attribute route.
595 596 597 |
# File 'lib/FlightXML2REST.rb', line 595 def route @route end |
Instance Method Details
#post ⇒ Object
601 602 603 |
# File 'lib/FlightXML2REST.rb', line 601 def post "destination=#@destination&origin=#@origin&route=#@route" end |