Class: Google::Apis::WalletobjectsV1::LoyaltyPointsBalance

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

Returns a new instance of LoyaltyPointsBalance.



5682
5683
5684
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5682

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

Instance Attribute Details

#doubleFloat

The double form of a balance. Only one of these subtypes (string, int, double, money) should be populated. Corresponds to the JSON property double

Returns:

  • (Float)


5662
5663
5664
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5662

def double
  @double
end

#intFixnum

The integer form of a balance. Only one of these subtypes (string, int, double, money) should be populated. Corresponds to the JSON property int

Returns:

  • (Fixnum)


5668
5669
5670
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5668

def int
  @int
end

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



5674
5675
5676
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5674

def money
  @money
end

#stringString

The string form of a balance. Only one of these subtypes (string, int, double, money) should be populated. Corresponds to the JSON property string

Returns:

  • (String)


5680
5681
5682
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5680

def string
  @string
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5687
5688
5689
5690
5691
5692
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5687

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