Class: Google::Apis::WalletobjectsV1::FlightCarrier
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::FlightCarrier
- 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
-
#airline_alliance_logo ⇒ Google::Apis::WalletobjectsV1::Image
Wrapping type for Google hosted images.
-
#airline_logo ⇒ Google::Apis::WalletobjectsV1::Image
Wrapping type for Google hosted images.
-
#airline_name ⇒ Google::Apis::WalletobjectsV1::LocalizedString
A localized name of the airline specified by carrierIataCode.
-
#carrier_iata_code ⇒ String
Two character IATA airline code of the marketing carrier (as opposed to operating carrier).
-
#carrier_icao_code ⇒ String
Three character ICAO airline code of the marketing carrier (as opposed to operating carrier).
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#wide_airline_logo ⇒ Google::Apis::WalletobjectsV1::Image
Wrapping type for Google hosted images.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FlightCarrier
constructor
A new instance of FlightCarrier.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FlightCarrier
Returns a new instance of FlightCarrier.
2341 2342 2343 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2341 def initialize(**args) update!(**args) end |
Instance Attribute Details
#airline_alliance_logo ⇒ Google::Apis::WalletobjectsV1::Image
Wrapping type for Google hosted images. Next ID: 7
Corresponds to the JSON property airlineAllianceLogo
2302 2303 2304 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2302 def airline_alliance_logo @airline_alliance_logo end |
#airline_logo ⇒ Google::Apis::WalletobjectsV1::Image
Wrapping type for Google hosted images. Next ID: 7
Corresponds to the JSON property airlineLogo
2307 2308 2309 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2307 def airline_logo @airline_logo end |
#airline_name ⇒ Google::Apis::WalletobjectsV1::LocalizedString
A localized name of the airline specified by carrierIataCode. If unset,
issuer_name
or localized_issuer_name
from FlightClass
will be used for
display purposes. eg: "Swiss Air" for "LX"
Corresponds to the JSON property airlineName
2314 2315 2316 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2314 def airline_name @airline_name end |
#carrier_iata_code ⇒ String
Two character IATA airline code of the marketing carrier (as opposed to
operating carrier). Exactly one of this or carrierIcaoCode
needs to be
provided for carrier
and operatingCarrier
. eg: "LX" for Swiss Air
Corresponds to the JSON property carrierIataCode
2321 2322 2323 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2321 def carrier_iata_code @carrier_iata_code end |
#carrier_icao_code ⇒ String
Three character ICAO airline code of the marketing carrier (as opposed to
operating carrier). Exactly one of this or carrierIataCode
needs to be
provided for carrier
and operatingCarrier
. eg: "EZY" for Easy Jet
Corresponds to the JSON property carrierIcaoCode
2328 2329 2330 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2328 def carrier_icao_code @carrier_icao_code end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
walletobjects#flightCarrier"
.
Corresponds to the JSON property kind
2334 2335 2336 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2334 def kind @kind end |
#wide_airline_logo ⇒ Google::Apis::WalletobjectsV1::Image
Wrapping type for Google hosted images. Next ID: 7
Corresponds to the JSON property wideAirlineLogo
2339 2340 2341 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2339 def wide_airline_logo @wide_airline_logo end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2346 2347 2348 2349 2350 2351 2352 2353 2354 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2346 def update!(**args) @airline_alliance_logo = args[:airline_alliance_logo] if args.key?(:airline_alliance_logo) @airline_logo = args[:airline_logo] if args.key?(:airline_logo) @airline_name = args[:airline_name] if args.key?(:airline_name) @carrier_iata_code = args[:carrier_iata_code] if args.key?(:carrier_iata_code) @carrier_icao_code = args[:carrier_icao_code] if args.key?(:carrier_icao_code) @kind = args[:kind] if args.key?(:kind) @wide_airline_logo = args[:wide_airline_logo] if args.key?(:wide_airline_logo) end |