Class: MapFlightExResults

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mapFlightExResult = nil) ⇒ MapFlightExResults

Returns a new instance of MapFlightExResults.



1833
1834
1835
1836
1837
1838
1839
1840
1841
# File 'lib/FlightXML2REST.rb', line 1833

def initialize(mapFlightExResult = nil)
  begin
    rawMapFlightExResult = JSON.parse(mapFlightExResult)
    mapFlightExResult = rawMapFlightExResult['MapFlightExResult']
    @mapFlightExResult = mapFlightExResult
  rescue
      raise FlightAwareError.new(rawMapFlightExResult['error']).error
  end
end

Instance Attribute Details

#mapFlightExResultObject

Returns the value of attribute mapFlightExResult.



1832
1833
1834
# File 'lib/FlightXML2REST.rb', line 1832

def mapFlightExResult
  @mapFlightExResult
end