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.



1837
1838
1839
1840
1841
1842
1843
1844
1845
# File 'lib/FlightXML2REST.rb', line 1837

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.



1836
1837
1838
# File 'lib/FlightXML2REST.rb', line 1836

def mapFlightExResult
  @mapFlightExResult
end