Class: Google::Apis::QpxExpressV1::CarrierData
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::CarrierData
- 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 a carrier (ie. an airline, bus line, railroad, etc) that might be useful to display to an end-user.
Instance Attribute Summary collapse
-
#code ⇒ String
The IATA designator of a carrier (airline, etc).
-
#kind ⇒ String
Identifies this as a kind of carrier (ie. an airline, bus line, railroad, etc).
-
#name ⇒ String
The long, full name of a carrier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CarrierData
constructor
A new instance of CarrierData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CarrierData
Returns a new instance of CarrierData
163 164 165 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 163 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
The IATA designator of a carrier (airline, etc). For example, for American
Airlines, the code is AA.
Corresponds to the JSON property code
150 151 152 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 150 def code @code end |
#kind ⇒ String
Identifies this as a kind of carrier (ie. an airline, bus line, railroad, etc).
Value: the fixed string qpxexpress#carrierData.
Corresponds to the JSON property kind
156 157 158 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 156 def kind @kind end |
#name ⇒ String
The long, full name of a carrier. For example: American Airlines.
Corresponds to the JSON property name
161 162 163 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 161 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
168 169 170 171 172 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 168 def update!(**args) @code = args[:code] if args.key?(:code) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) end |