Class: Google::Apis::QpxExpressV1::CityData
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::CityData
- 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
-
#code ⇒ String
The IATA character ID of a city.
-
#country ⇒ String
The two-character country code of the country the city is located in.
-
#kind ⇒ String
Identifies this as a city, typically with one or more airports.
-
#name ⇒ String
The full name of a city.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CityData
constructor
A new instance of CityData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#code ⇒ String
The IATA character ID of a city. For example, for Boston this is BOS.
Corresponds to the JSON property code
183 184 185 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 183 def code @code end |
#country ⇒ String
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
189 190 191 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 189 def country @country end |
#kind ⇒ String
Identifies this as a city, typically with one or more airports. Value: the
fixed string qpxexpress#cityData.
Corresponds to the JSON property kind
195 196 197 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 195 def kind @kind end |
#name ⇒ String
The full name of a city. An example would be: New York.
Corresponds to the JSON property name
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 |