Class: DingSDK::Models::Shared::BalanceUpdate

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/ding_sdk/models/shared/balance_update.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(amount: nil, balance_update_type: nil, created_at: nil, type: nil) ⇒ BalanceUpdate

Returns a new instance of BalanceUpdate.



27
28
29
30
31
32
# File 'lib/ding_sdk/models/shared/balance_update.rb', line 27

def initialize(amount: nil, balance_update_type: nil, created_at: nil, type: nil)
  @amount = amount
  @balance_update_type = balance_update_type
  @created_at = created_at
  @type = type
end

Instance Method Details

#==(other) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/ding_sdk/models/shared/balance_update.rb', line 34

def ==(other)
  return false unless other.is_a? self.class
  return false unless @amount == other.amount
  return false unless @balance_update_type == other.balance_update_type
  return false unless @created_at == other.created_at
  return false unless @type == other.type
  true
end