Class: DecodeRouteRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/FlightXML2REST.rb

Overview

DecodeRoute

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#destinationObject

Returns the value of attribute destination.



663
664
665
# File 'lib/FlightXML2REST.rb', line 663

def destination
  @destination
end

#originObject

Returns the value of attribute origin.



663
664
665
# File 'lib/FlightXML2REST.rb', line 663

def origin
  @origin
end

#routeObject

Returns the value of attribute route.



663
664
665
# File 'lib/FlightXML2REST.rb', line 663

def route
  @route
end

Instance Method Details

#postObject



669
670
671
# File 'lib/FlightXML2REST.rb', line 669

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