Class: DingSDK::Shared::BalanceUpdate

Inherits:
Crystalline::FieldAugmented show all
Extended by:
T::Sig
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.



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

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



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

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