Class: Google::Apis::WalletobjectsV1::FlightCarrier

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

Returns a new instance of FlightCarrier.



2427
2428
2429
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2427

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

Instance Attribute Details

#airline_alliance_logoGoogle::Apis::WalletobjectsV1::Image

Wrapping type for Google hosted images. Corresponds to the JSON property airlineAllianceLogo



2388
2389
2390
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2388

def 
  
end

#airline_logoGoogle::Apis::WalletobjectsV1::Image

Wrapping type for Google hosted images. Corresponds to the JSON property airlineLogo



2393
2394
2395
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2393

def 
  
end

#airline_nameGoogle::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



2400
2401
2402
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2400

def airline_name
  @airline_name
end

#carrier_iata_codeString

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

Returns:

  • (String)


2407
2408
2409
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2407

def carrier_iata_code
  @carrier_iata_code
end

#carrier_icao_codeString

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

Returns:

  • (String)


2414
2415
2416
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2414

def carrier_icao_code
  @carrier_icao_code
end

#kindString

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

Returns:

  • (String)


2420
2421
2422
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2420

def kind
  @kind
end

#wide_airline_logoGoogle::Apis::WalletobjectsV1::Image

Wrapping type for Google hosted images. Corresponds to the JSON property wideAirlineLogo



2425
2426
2427
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2425

def 
  
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2432
2433
2434
2435
2436
2437
2438
2439
2440
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2432

def update!(**args)
   = args[:airline_alliance_logo] if args.key?(:airline_alliance_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)
   = args[:wide_airline_logo] if args.key?(:wide_airline_logo)
end