Class: Google::Apis::WalletobjectsV1::FrequentFlyerInfo
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::FrequentFlyerInfo
- 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
-
#frequent_flyer_number ⇒ String
Frequent flyer number.
-
#frequent_flyer_program_name ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Frequent flyer program name.
-
#kind ⇒ String
Identifies what kind of resource this is.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FrequentFlyerInfo
constructor
A new instance of FrequentFlyerInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FrequentFlyerInfo
Returns a new instance of FrequentFlyerInfo.
3120 3121 3122 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 3120 def initialize(**args) update!(**args) end |
Instance Attribute Details
#frequent_flyer_number ⇒ String
Frequent flyer number. Required for each nested object of kind walletobjects#
frequentFlyerInfo
.
Corresponds to the JSON property frequentFlyerNumber
3107 3108 3109 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 3107 def frequent_flyer_number @frequent_flyer_number end |
#frequent_flyer_program_name ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Frequent flyer program name. eg: "Lufthansa Miles & More"
Corresponds to the JSON property frequentFlyerProgramName
3112 3113 3114 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 3112 def frequent_flyer_program_name @frequent_flyer_program_name end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
walletobjects#frequentFlyerInfo"
.
Corresponds to the JSON property kind
3118 3119 3120 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 3118 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3125 3126 3127 3128 3129 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 3125 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 |