Class: Google::Apis::WalletobjectsV1::FrequentFlyerInfo

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

Returns a new instance of FrequentFlyerInfo.



3059
3060
3061
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 3059

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

Instance Attribute Details

#frequent_flyer_numberString

Frequent flyer number. Required for each nested object of kind walletobjects# frequentFlyerInfo. Corresponds to the JSON property frequentFlyerNumber

Returns:

  • (String)


3046
3047
3048
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 3046

def frequent_flyer_number
  @frequent_flyer_number
end

#frequent_flyer_program_nameGoogle::Apis::WalletobjectsV1::LocalizedString

Frequent flyer program name. eg: "Lufthansa Miles & More" Corresponds to the JSON property frequentFlyerProgramName



3051
3052
3053
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 3051

def frequent_flyer_program_name
  @frequent_flyer_program_name
end

#kindString

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

Returns:

  • (String)


3057
3058
3059
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 3057

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3064
3065
3066
3067
3068
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 3064

def update!(**args)
  @frequent_flyer_number = args[:frequent_flyer_number] if args.key?(:frequent_flyer_number)
  @frequent_flyer_program_name = args[:frequent_flyer_program_name] if args.key?(:frequent_flyer_program_name)
  @kind = args[:kind] if args.key?(:kind)
end