Class: Google::Apis::QpxExpressV1::CarrierData

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 a carrier (ie. an airline, bus line, railroad, etc) that might be useful to display to an end-user.

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

#codeString

The IATA designator of a carrier (airline, etc). For example, for American Airlines, the code is AA. Corresponds to the JSON property code

Returns:

  • (String)


150
151
152
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 150

def code
  @code
end

#kindString

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

Returns:

  • (String)


156
157
158
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 156

def kind
  @kind
end

#nameString

The long, full name of a carrier. For example: American Airlines. Corresponds to the JSON property name

Returns:

  • (String)


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