Class: Google::Apis::QpxExpressV1::Data
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::Data
- 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
-
#aircraft ⇒ Array<Google::Apis::QpxExpressV1::AircraftData>
The aircraft that is flying between an origin and destination.
-
#airport ⇒ Array<Google::Apis::QpxExpressV1::AirportData>
The airport of an origin or destination.
-
#carrier ⇒ Array<Google::Apis::QpxExpressV1::CarrierData>
The airline carrier of the aircraft flying between an origin and destination.
-
#city ⇒ Array<Google::Apis::QpxExpressV1::CityData>
The city that is either the origin or destination of part of a trip.
-
#kind ⇒ String
Identifies this as QPX Express response resource, including a trip's airport, city, taxes, airline, and aircraft.
-
#tax ⇒ Array<Google::Apis::QpxExpressV1::TaxData>
The taxes due for flying between an origin and a destination.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Data
constructor
A new instance of Data.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#aircraft ⇒ Array<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 |
#airport ⇒ Array<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 |
#carrier ⇒ Array<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 |
#city ⇒ Array<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 |
#kind ⇒ String
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
245 246 247 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 245 def kind @kind end |
#tax ⇒ Array<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 |