Class: TigerBeetle::AccountBalance

Inherits:
Struct
  • Object
show all
Defined in:
lib/tigerbeetle/account_balance.rb

Instance Method Summary collapse

Constructor Details

#initialize(debits_pending: 0, debits_posted: 0, credits_pending: 0, credits_posted: 0, timestamp: 0) ⇒ AccountBalance

Returns a new instance of AccountBalance.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/tigerbeetle/account_balance.rb', line 7

def initialize(
  debits_pending: 0,
  debits_posted: 0,
  credits_pending: 0,
  credits_posted: 0,
  timestamp: 0
)
  super(
    debits_pending,
    debits_posted,
    credits_pending,
    credits_posted,
    timestamp
  )
end