Class: Google::Apis::WalletobjectsV1::LoyaltyPointsBalance
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::LoyaltyPointsBalance
- 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
-
#double ⇒ Float
The double form of a balance.
-
#int ⇒ Fixnum
The integer form of a balance.
-
#money ⇒ Google::Apis::WalletobjectsV1::Money
The money form of a balance.
-
#string ⇒ String
The string form of a balance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LoyaltyPointsBalance
constructor
A new instance of LoyaltyPointsBalance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LoyaltyPointsBalance
Returns a new instance of LoyaltyPointsBalance.
5577 5578 5579 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5577 def initialize(**args) update!(**args) end |
Instance Attribute Details
#double ⇒ Float
The double form of a balance. Only one of these subtypes (string, int, double,
money) should be populated.
Corresponds to the JSON property double
5557 5558 5559 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5557 def double @double end |
#int ⇒ Fixnum
The integer form of a balance. Only one of these subtypes (string, int, double,
money) should be populated.
Corresponds to the JSON property int
5563 5564 5565 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5563 def int @int end |
#money ⇒ Google::Apis::WalletobjectsV1::Money
The money form of a balance. Only one of these subtypes (string, int, double,
money) should be populated.
Corresponds to the JSON property money
5569 5570 5571 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5569 def money @money end |
#string ⇒ String
The string form of a balance. Only one of these subtypes (string, int, double,
money) should be populated.
Corresponds to the JSON property string
5575 5576 5577 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5575 def string @string end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5582 5583 5584 5585 5586 5587 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5582 def update!(**args) @double = args[:double] if args.key?(:double) @int = args[:int] if args.key?(:int) @money = args[:money] if args.key?(:money) @string = args[:string] if args.key?(:string) end |