class InboundFlightInfoResults
Attributes
inboundFlightInfoResult[RW]
Public Class Methods
new(inboundFlightInfoResult = nil)
click to toggle source
# File lib/FlightXML2REST.rb, line 1542 def initialize(inboundFlightInfoResult = nil) begin rawInboundFlightInfoResult = JSON.parse(inboundFlightInfoResult) inboundFlightInfoResult = rawInboundFlightInfoResult['InboundFlightInfoResult'] @inboundFlightInfoResult = FlightExStruct.new(inboundFlightInfoResult['actualarrivaltime'], inboundFlightInfoResult['actualdeparturetime'], inboundFlightInfoResult['aircrafttype'], inboundFlightInfoResult['destination'], inboundFlightInfoResult['destinationCity'], inboundFlightInfoResult['destinationName'], inboundFlightInfoResult['diverted'], inboundFlightInfoResult['estimatedarrivaltime'], inboundFlightInfoResult['faFlightID'], inboundFlightInfoResult['filed_airspeed_kts'], inboundFlightInfoResult['filed_airspeed_mach'], inboundFlightInfoResult['filed_altitude'], inboundFlightInfoResult['filed_departuretime'], inboundFlightInfoResult['filed_ete'], inboundFlightInfoResult['filed_time'], inboundFlightInfoResult['ident'], inboundFlightInfoResult['origin'], inboundFlightInfoResult['originCity'], inboundFlightInfoResult['originName'], inboundFlightInfoResult['route'] ) rescue raise FlightAwareError.new(rawInboundFlightInfoResult['error']).error end end