class Google::Apis::QpxExpressV1::Data

Detailed information about components found in the solutions of this response, including a trip's airport, city, taxes, airline, and aircraft.

Attributes

aircraft[RW]

The aircraft that is flying between an origin and destination. Corresponds to the JSON property `aircraft` @return [Array<Google::Apis::QpxExpressV1::AircraftData>]

airport[RW]

The airport of an origin or destination. Corresponds to the JSON property `airport` @return [Array<Google::Apis::QpxExpressV1::AirportData>]

carrier[RW]

The airline carrier of the aircraft flying between an origin and destination. Allowed values are IATA carrier codes. Corresponds to the JSON property `carrier` @return [Array<Google::Apis::QpxExpressV1::CarrierData>]

city[RW]

The city that is either the origin or destination of part of a trip. Corresponds to the JSON property `city` @return [Array<Google::Apis::QpxExpressV1::CityData>]

kind[RW]

Identifies this as QPX Express response resource, including a trip's airport, city, taxes, airline, and aircraft. Value: the fixed string qpxexpress#data. Corresponds to the JSON property `kind` @return [String]

tax[RW]

The taxes due for flying between an origin and a destination. Corresponds to the JSON property `tax` @return [Array<Google::Apis::QpxExpressV1::TaxData>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/qpx_express_v1/classes.rb, line 252
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/qpx_express_v1/classes.rb, line 257
def update!(**args)
  @aircraft = args[:aircraft] if args.key?(:aircraft)
  @airport = args[:airport] if args.key?(:airport)
  @carrier = args[:carrier] if args.key?(:carrier)
  @city = args[:city] if args.key?(:city)
  @kind = args[:kind] if args.key?(:kind)
  @tax = args[:tax] if args.key?(:tax)
end