Class: Google::Apis::QpxExpressV1::AirportData
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::AirportData
- 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
An airport.
Instance Attribute Summary collapse
-
#city ⇒ String
The city code an airport is located in.
-
#code ⇒ String
An airport's code.
-
#kind ⇒ String
Identifies this as an airport object.
-
#name ⇒ String
The name of an airport.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AirportData
constructor
A new instance of AirportData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AirportData
Returns a new instance of AirportData
84 85 86 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 84 def initialize(**args) update!(**args) end |
Instance Attribute Details
#city ⇒ String
The city code an airport is located in. For example, for JFK airport, this is
NYC.
Corresponds to the JSON property city
65 66 67 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 65 def city @city end |
#code ⇒ String
An airport's code. For example, for Boston Logan airport, this is BOS.
Corresponds to the JSON property code
70 71 72 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 70 def code @code end |
#kind ⇒ String
Identifies this as an airport object. Value: the fixed string qpxexpress#
airportData.
Corresponds to the JSON property kind
76 77 78 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 76 def kind @kind end |
#name ⇒ String
The name of an airport. For example, for airport BOS the name is "Boston Logan
International".
Corresponds to the JSON property name
82 83 84 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 82 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
89 90 91 92 93 94 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 89 def update!(**args) @city = args[:city] if args.key?(:city) @code = args[:code] if args.key?(:code) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) end |