Class: Clerk::Models::Components::CommerceCreditBalanceResponse
- Inherits:
-
Object
- Object
- Clerk::Models::Components::CommerceCreditBalanceResponse
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/commercecreditbalanceresponse.rb
Overview
A payer’s credit balance.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, balance: nil) ⇒ CommerceCreditBalanceResponse
constructor
A new instance of CommerceCreditBalanceResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, balance: nil) ⇒ CommerceCreditBalanceResponse
Returns a new instance of CommerceCreditBalanceResponse.
21 22 23 24 |
# File 'lib/clerk/models/components/commercecreditbalanceresponse.rb', line 21 def initialize(object:, balance: nil) @object = object @balance = balance end |
Instance Method Details
#==(other) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/clerk/models/components/commercecreditbalanceresponse.rb', line 27 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @balance == other.balance true end |