Class: Google::Apis::QpxExpressV1::AirportData

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

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

#cityString

The city code an airport is located in. For example, for JFK airport, this is NYC. Corresponds to the JSON property city

Returns:

  • (String)

65
66
67
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 65

def city
  @city
end

#codeString

An airport's code. For example, for Boston Logan airport, this is BOS. Corresponds to the JSON property code

Returns:

  • (String)

70
71
72
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 70

def code
  @code
end

#kindString

Identifies this as an airport object. Value: the fixed string qpxexpress# airportData. Corresponds to the JSON property kind

Returns:

  • (String)

76
77
78
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 76

def kind
  @kind
end

#nameString

The name of an airport. For example, for airport BOS the name is "Boston Logan International". Corresponds to the JSON property name

Returns:

  • (String)

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