class Google::Apis::QpxExpressV1::FreeBaggageAllowance

Information about free baggage allowed on one segment of a trip.

Attributes

bag_descriptor[RW]

A representation of a type of bag, such as an ATPCo subcode, Commercial Name, or other description. Corresponds to the JSON property `bagDescriptor` @return [Array<Google::Apis::QpxExpressV1::BagDescriptor>]

kilos[RW]

The maximum number of kilos all the free baggage together may weigh. Corresponds to the JSON property `kilos` @return [Fixnum]

kilos_per_piece[RW]

The maximum number of kilos any one piece of baggage may weigh. Corresponds to the JSON property `kilosPerPiece` @return [Fixnum]

kind[RW]

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` @return [String]

pieces[RW]

The number of free pieces of baggage allowed. Corresponds to the JSON property `pieces` @return [Fixnum]

pounds[RW]

The number of pounds of free baggage allowed. Corresponds to the JSON property `pounds` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/qpx_express_v1/classes.rb, line 395
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 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