Class: Google::Apis::QpxExpressV1::Data

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/qpx_express_v1/classes.rb,
generated/google/apis/qpx_express_v1/representations.rb,
generated/google/apis/qpx_express_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Data

Returns a new instance of Data.


252
253
254
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 252

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aircraftArray<Google::Apis::QpxExpressV1::AircraftData>

The aircraft that is flying between an origin and destination. Corresponds to the JSON property aircraft


223
224
225
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 223

def aircraft
  @aircraft
end

#airportArray<Google::Apis::QpxExpressV1::AirportData>

The airport of an origin or destination. Corresponds to the JSON property airport


228
229
230
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 228

def airport
  @airport
end

#carrierArray<Google::Apis::QpxExpressV1::CarrierData>

The airline carrier of the aircraft flying between an origin and destination. Allowed values are IATA carrier codes. Corresponds to the JSON property carrier


234
235
236
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 234

def carrier
  @carrier
end

#cityArray<Google::Apis::QpxExpressV1::CityData>

The city that is either the origin or destination of part of a trip. Corresponds to the JSON property city


239
240
241
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 239

def city
  @city
end

#kindString

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

Returns:

  • (String)

245
246
247
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 245

def kind
  @kind
end

#taxArray<Google::Apis::QpxExpressV1::TaxData>

The taxes due for flying between an origin and a destination. Corresponds to the JSON property tax


250
251
252
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 250

def tax
  @tax
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


257
258
259
260
261
262
263
264
# 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