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.
664 665 666 667 668 |
# File 'lib/FlightXML2REST.rb', line 664 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.
663 664 665 |
# File 'lib/FlightXML2REST.rb', line 663 def destination @destination end |
#origin ⇒ Object
Returns the value of attribute origin.
663 664 665 |
# File 'lib/FlightXML2REST.rb', line 663 def origin @origin end |
#route ⇒ Object
Returns the value of attribute route.
663 664 665 |
# File 'lib/FlightXML2REST.rb', line 663 def route @route end |
Instance Method Details
#post ⇒ Object
669 670 671 |
# File 'lib/FlightXML2REST.rb', line 669 def post "destination=#@destination&origin=#@origin&route=#@route" end |