Class: ModernTreasury::Models::LedgerBalance

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/modern_treasury/models/ledger_balance.rb,
sig/modern_treasury/models/ledger_balance.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], 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

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#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

Parameters:

  • amount (Integer)
  • amount_string (String)
  • credits (Integer)
  • credits_string (String)
  • currency (String)

    The currency of the ledger account.

  • currency_exponent (Integer)

    The currency exponent of the ledger account.

  • debits (Integer)
  • debits_string (String)


# File 'lib/modern_treasury/models/ledger_balance.rb', line 48

Instance Attribute Details

#amountInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


9
# File 'lib/modern_treasury/models/ledger_balance.rb', line 9

required :amount, Integer

#amount_stringString

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/modern_treasury/models/ledger_balance.rb', line 14

required :amount_string, String

#creditsInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


19
# File 'lib/modern_treasury/models/ledger_balance.rb', line 19

required :credits, Integer

#credits_stringString

Parameters:

  • value (String)

Returns:

  • (String)


24
# File 'lib/modern_treasury/models/ledger_balance.rb', line 24

required :credits_string, String

#currencyString

The currency of the ledger account.

Parameters:

  • value (String)

Returns:

  • (String)


30
# File 'lib/modern_treasury/models/ledger_balance.rb', line 30

required :currency, String

#currency_exponentInteger

The currency exponent of the ledger account.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


36
# File 'lib/modern_treasury/models/ledger_balance.rb', line 36

required :currency_exponent, Integer

#debitsInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


41
# File 'lib/modern_treasury/models/ledger_balance.rb', line 41

required :debits, Integer

#debits_stringString

Parameters:

  • value (String)

Returns:

  • (String)


46
# File 'lib/modern_treasury/models/ledger_balance.rb', line 46

required :debits_string, String

Instance Method Details

#to_hash{

Returns:

  • ({)


43
# File 'sig/modern_treasury/models/ledger_balance.rbs', line 43

def to_hash: -> {