class Google::Apis::QpxExpressV1::AirportData

An airport.

Attributes

city[RW]

The city code an airport is located in. For example, for JFK airport, this is NYC. Corresponds to the JSON property `city` @return [String]

code[RW]

An airport's code. For example, for Boston Logan airport, this is BOS. Corresponds to the JSON property `code` @return [String]

kind[RW]

Identifies this as an airport object. Value: the fixed string qpxexpress# airportData. Corresponds to the JSON property `kind` @return [String]

name[RW]

The name of an airport. For example, for airport BOS the name is “Boston Logan International”. 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 84
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 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