class MapFlightResults

Attributes

mapFlightResult[RW]

Public Class Methods

new(mapFlightResult = nil) click to toggle source
# File lib/FlightXML2REST.rb, line 1772
def initialize(mapFlightResult = nil)
  begin
    rawMapFlightResult = JSON.parse(mapFlightResult)
    mapFlightResult = rawMapFlightResult['MapFlightResult']
    @mapFlightResult = mapFlightResult
  rescue
      raise FlightAwareError.new(rawMapFlightResult['error']).error
  end
end