class Subledger::Interface::Client

Constants

COLLECTIONS

Attributes

client_args[R]
store[R]

Public Class Methods

new(args) click to toggle source
# File lib/subledger/interface/client.rb, line 245
def initialize args
  @client_args = args

  # TODO client should not have @store and #store

  @store = args[:store]
end

Public Instance Methods

balance(*args) click to toggle source
# File lib/subledger/interface/client.rb, line 290
def balance *args
  Domain::Balance.new *args
end
credit(*args) click to toggle source
# File lib/subledger/interface/client.rb, line 282
def credit *args
  args.empty? ? Domain::Credit : Domain::Credit.new( *args )
end
debit(*args) click to toggle source
# File lib/subledger/interface/client.rb, line 278
def debit *args
  args.empty? ? Domain::Debit  : Domain::Debit.new( *args )
end
zero(*args) click to toggle source
# File lib/subledger/interface/client.rb, line 286
def zero *args
  Domain::Zero.new
end