Class: Google::Apis::QpxExpressV1::FreeBaggageAllowance
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::FreeBaggageAllowance
- 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
Information about free baggage allowed on one segment of a trip.
Instance Attribute Summary collapse
-
#bag_descriptor ⇒ Array<Google::Apis::QpxExpressV1::BagDescriptor>
A representation of a type of bag, such as an ATPCo subcode, Commercial Name, or other description.
-
#kilos ⇒ Fixnum
The maximum number of kilos all the free baggage together may weigh.
-
#kilos_per_piece ⇒ Fixnum
The maximum number of kilos any one piece of baggage may weigh.
-
#kind ⇒ String
Identifies this as free baggage object, allowed on one segment of a trip.
-
#pieces ⇒ Fixnum
The number of free pieces of baggage allowed.
-
#pounds ⇒ Fixnum
The number of pounds of free baggage allowed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FreeBaggageAllowance
constructor
A new instance of FreeBaggageAllowance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FreeBaggageAllowance
Returns a new instance of FreeBaggageAllowance
395 396 397 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 395 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bag_descriptor ⇒ Array<Google::Apis::QpxExpressV1::BagDescriptor>
A representation of a type of bag, such as an ATPCo subcode, Commercial Name,
or other description.
Corresponds to the JSON property bagDescriptor
367 368 369 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 367 def bag_descriptor @bag_descriptor end |
#kilos ⇒ Fixnum
The maximum number of kilos all the free baggage together may weigh.
Corresponds to the JSON property kilos
372 373 374 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 372 def kilos @kilos end |
#kilos_per_piece ⇒ Fixnum
The maximum number of kilos any one piece of baggage may weigh.
Corresponds to the JSON property kilosPerPiece
377 378 379 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 377 def kilos_per_piece @kilos_per_piece end |
#kind ⇒ String
Identifies this as free baggage object, allowed on one segment of a trip.
Value: the fixed string qpxexpress#freeBaggageAllowance.
Corresponds to the JSON property kind
383 384 385 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 383 def kind @kind end |
#pieces ⇒ Fixnum
The number of free pieces of baggage allowed.
Corresponds to the JSON property pieces
388 389 390 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 388 def pieces @pieces end |
#pounds ⇒ Fixnum
The number of pounds of free baggage allowed.
Corresponds to the JSON property pounds
393 394 395 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 393 def pounds @pounds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
400 401 402 403 404 405 406 407 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 400 def update!(**args) @bag_descriptor = args[:bag_descriptor] if args.key?(:bag_descriptor) @kilos = args[:kilos] if args.key?(:kilos) @kilos_per_piece = args[:kilos_per_piece] if args.key?(:kilos_per_piece) @kind = args[:kind] if args.key?(:kind) @pieces = args[:pieces] if args.key?(:pieces) @pounds = args[:pounds] if args.key?(:pounds) end |