class AircraftTypeResults
Attributes
aircraftTypeResult[RW]
Public Class Methods
new(aircraftTypeResult = nil)
click to toggle source
# File lib/FlightXML2REST.rb, line 22 def initialize(aircraftTypeResult = nil) begin rawAircraftTypeResult = JSON.parse(aircraftTypeResult) aircraftTypeResult = JSON.parse(aircraftTypeResult)['AircraftTypeResult'] @aircraftTypeResult = AircraftTypeStruct.new(aircraftTypeResult['description'], aircraftTypeResult['manufacturer'], aircraftTypeResult['type']) rescue raise FlightAwareError.new(rawAircraftTypeResult['error']).error end end