Class: Google::Apis::WalletobjectsV1::AirportInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AirportInfo

Returns a new instance of AirportInfo.



131
132
133
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 131

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#airport_iata_codeString

Three character IATA airport code. This is a required field for origin and destination. Eg: "SFO" Corresponds to the JSON property airportIataCode

Returns:

  • (String)


101
102
103
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 101

def airport_iata_code
  @airport_iata_code
end

#airport_name_overrideGoogle::Apis::WalletobjectsV1::LocalizedString

Optional field that overrides the airport city name defined by IATA. By default, Google takes the airportIataCode provided and maps it to the official airport city name defined by IATA. Official IATA airport city names can be found at IATA airport city names website. For example, for the airport IATA code "LTN", IATA website tells us that the corresponding airport city is " London". If this field is not populated, Google would display "London". However, populating this field with a custom name (eg: "London Luton") would override it. Corresponds to the JSON property airportNameOverride



113
114
115
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 113

def airport_name_override
  @airport_name_override
end

#gateString

A name of the gate. Eg: "B59" or "59" Corresponds to the JSON property gate

Returns:

  • (String)


118
119
120
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 118

def gate
  @gate
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " walletobjects#airportInfo". Corresponds to the JSON property kind

Returns:

  • (String)


124
125
126
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 124

def kind
  @kind
end

#terminalString

Terminal name. Eg: "INTL" or "I" Corresponds to the JSON property terminal

Returns:

  • (String)


129
130
131
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 129

def terminal
  @terminal
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



136
137
138
139
140
141
142
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 136

def update!(**args)
  @airport_iata_code = args[:airport_iata_code] if args.key?(:airport_iata_code)
  @airport_name_override = args[:airport_name_override] if args.key?(:airport_name_override)
  @gate = args[:gate] if args.key?(:gate)
  @kind = args[:kind] if args.key?(:kind)
  @terminal = args[:terminal] if args.key?(:terminal)
end