Class: Google::Apis::QpxExpressV1::BagDescriptor

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 an item of baggage.

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

Provides the commercial name for an optional service. Corresponds to the JSON property commercialName

Returns:

  • (String)


104
105
106
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 104

def commercial_name
  @commercial_name
end

#countFixnum

How many of this type of bag will be checked on this flight. Corresponds to the JSON property count

Returns:

  • (Fixnum)


109
110
111
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 109

def count
  @count
end

#descriptionArray<String>

A description of the baggage. Corresponds to the JSON property description

Returns:

  • (Array<String>)


114
115
116
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 114

def description
  @description
end

#kindString

Identifies this as a baggage object. Value: the fixed string qpxexpress# bagDescriptor. Corresponds to the JSON property kind

Returns:

  • (String)


120
121
122
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 120

def kind
  @kind
end

#subcodeString

The standard IATA subcode used to identify this optional service. Corresponds to the JSON property subcode

Returns:

  • (String)


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