Class: Google::Apis::QpxExpressV1::CityData

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 city that might be useful to an end-user; typically the city of an airport.

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

Returns a new instance of CityData



202
203
204
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 202

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#codeString

The IATA character ID of a city. For example, for Boston this is BOS. Corresponds to the JSON property code

Returns:

  • (String)


183
184
185
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 183

def code
  @code
end

#countryString

The two-character country code of the country the city is located in. For example, US for the United States of America. Corresponds to the JSON property country

Returns:

  • (String)


189
190
191
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 189

def country
  @country
end

#kindString

Identifies this as a city, typically with one or more airports. Value: the fixed string qpxexpress#cityData. Corresponds to the JSON property kind

Returns:

  • (String)


195
196
197
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 195

def kind
  @kind
end

#nameString

The full name of a city. An example would be: New York. Corresponds to the JSON property name

Returns:

  • (String)


200
201
202
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 200

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



207
208
209
210
211
212
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 207

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @country = args[:country] if args.key?(:country)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
end