Class: Google::Apis::QpxExpressV1::FreeBaggageAllowance

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

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

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) ⇒ 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_descriptorArray<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

#kilosFixnum

The maximum number of kilos all the free baggage together may weigh. Corresponds to the JSON property kilos

Returns:

  • (Fixnum)


372
373
374
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 372

def kilos
  @kilos
end

#kilos_per_pieceFixnum

The maximum number of kilos any one piece of baggage may weigh. Corresponds to the JSON property kilosPerPiece

Returns:

  • (Fixnum)


377
378
379
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 377

def kilos_per_piece
  @kilos_per_piece
end

#kindString

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

Returns:

  • (String)


383
384
385
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 383

def kind
  @kind
end

#piecesFixnum

The number of free pieces of baggage allowed. Corresponds to the JSON property pieces

Returns:

  • (Fixnum)


388
389
390
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 388

def pieces
  @pieces
end

#poundsFixnum

The number of pounds of free baggage allowed. Corresponds to the JSON property pounds

Returns:

  • (Fixnum)


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