class Google::Apis::QpxExpressV1::CityData

Information about a city that might be useful to an end-user; typically the city of an airport.

Attributes

code[RW]

The IATA character ID of a city. For example, for Boston this is BOS. Corresponds to the JSON property `code` @return [String]

country[RW]

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` @return [String]

kind[RW]

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

name[RW]

The full name of a city. An example would be: New York. Corresponds to the JSON property `name` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/qpx_express_v1/classes.rb, line 202
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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