Class: Google::Apis::QpxExpressV1::BagDescriptor
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::BagDescriptor
- 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 an item of baggage.
Instance Attribute Summary collapse
-
#commercial_name ⇒ String
Provides the commercial name for an optional service.
-
#count ⇒ Fixnum
How many of this type of bag will be checked on this flight.
-
#description ⇒ Array<String>
A description of the baggage.
-
#kind ⇒ String
Identifies this as a baggage object.
-
#subcode ⇒ String
The standard IATA subcode used to identify this optional service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BagDescriptor
constructor
A new instance of BagDescriptor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BagDescriptor
Returns a new instance of BagDescriptor
127 128 129 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 127 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commercial_name ⇒ String
Provides the commercial name for an optional service.
Corresponds to the JSON property commercialName
104 105 106 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 104 def commercial_name @commercial_name end |
#count ⇒ Fixnum
How many of this type of bag will be checked on this flight.
Corresponds to the JSON property count
109 110 111 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 109 def count @count end |
#description ⇒ Array<String>
A description of the baggage.
Corresponds to the JSON property description
114 115 116 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 114 def description @description end |
#kind ⇒ String
Identifies this as a baggage object. Value: the fixed string qpxexpress#
bagDescriptor.
Corresponds to the JSON property kind
120 121 122 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 120 def kind @kind end |
#subcode ⇒ String
The standard IATA subcode used to identify this optional service.
Corresponds to the JSON property subcode
125 126 127 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 125 def subcode @subcode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
132 133 134 135 136 137 138 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 132 def update!(**args) @commercial_name = args[:commercial_name] if args.key?(:commercial_name) @count = args[:count] if args.key?(:count) @description = args[:description] if args.key?(:description) @kind = args[:kind] if args.key?(:kind) @subcode = args[:subcode] if args.key?(:subcode) end |