Class: DecodeFlightRouteResults
- Inherits:
-
Object
- Object
- DecodeFlightRouteResults
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#decodeFlightRouteResult ⇒ Object
Returns the value of attribute decodeFlightRouteResult.
Instance Method Summary collapse
-
#initialize(decodeFlightRouteResult = nil) ⇒ DecodeFlightRouteResults
constructor
A new instance of DecodeFlightRouteResults.
Constructor Details
#initialize(decodeFlightRouteResult = nil) ⇒ DecodeFlightRouteResults
Returns a new instance of DecodeFlightRouteResults.
561 562 563 564 565 566 567 568 569 570 571 |
# File 'lib/FlightXML2REST.rb', line 561 def initialize(decodeFlightRouteResult = nil) decodeFlightRouteResult= JSON.parse(decodeFlightRouteResult)['DecodeFlightRouteResult'] @decodeFlightRouteResult = ArrayOfFlightRouteStruct.new([],decodeFlightRouteResult['next_offset']) decodeFlightRouteResult['data'].each do |data| @decodeFlightRouteResult.data << FlightRouteStruct.new(data['latitude'], data['longitude'], data['name'], data['type'] ) end end |
Instance Attribute Details
#decodeFlightRouteResult ⇒ Object
Returns the value of attribute decodeFlightRouteResult.
560 561 562 |
# File 'lib/FlightXML2REST.rb', line 560 def decodeFlightRouteResult @decodeFlightRouteResult end |