Class: ModernTreasury::Models::LedgerBalance
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(amount:, amount_string:, credits:, credits_string:, currency:, currency_exponent:, debits:, debits_string:) ⇒ Object
|
# File 'lib/modern_treasury/models/ledger_balance.rb', line 48
|
Instance Attribute Details
#amount ⇒ Integer
9
|
# File 'lib/modern_treasury/models/ledger_balance.rb', line 9
required :amount, Integer
|
#amount_string ⇒ String
14
|
# File 'lib/modern_treasury/models/ledger_balance.rb', line 14
required :amount_string, String
|
#credits ⇒ Integer
19
|
# File 'lib/modern_treasury/models/ledger_balance.rb', line 19
required :credits, Integer
|
#credits_string ⇒ String
24
|
# File 'lib/modern_treasury/models/ledger_balance.rb', line 24
required :credits_string, String
|
#currency ⇒ String
The currency of the ledger account.
30
|
# File 'lib/modern_treasury/models/ledger_balance.rb', line 30
required :currency, String
|
#currency_exponent ⇒ Integer
The currency exponent of the ledger account.
36
|
# File 'lib/modern_treasury/models/ledger_balance.rb', line 36
required :currency_exponent, Integer
|
#debits ⇒ Integer
41
|
# File 'lib/modern_treasury/models/ledger_balance.rb', line 41
required :debits, Integer
|
#debits_string ⇒ String
46
|
# File 'lib/modern_treasury/models/ledger_balance.rb', line 46
required :debits_string, String
|
Instance Method Details
#to_hash ⇒ {
43
|
# File 'sig/modern_treasury/models/ledger_balance.rbs', line 43
def to_hash: -> {
|