Class: InboundFlightInfoResults

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(inboundFlightInfoResult = nil) ⇒ InboundFlightInfoResults

Returns a new instance of InboundFlightInfoResults.



1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
# File 'lib/FlightXML2REST.rb', line 1410

def initialize(inboundFlightInfoResult = nil)
  inboundFlightInfoResult = JSON.parse(inboundFlightInfoResult)['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']
                                               )
end

Instance Attribute Details

#inboundFlightInfoResultObject

Returns the value of attribute inboundFlightInfoResult.



1409
1410
1411
# File 'lib/FlightXML2REST.rb', line 1409

def inboundFlightInfoResult
  @inboundFlightInfoResult
end