class Ookkee::BuilderProxy
Public Class Methods
new(options)
click to toggle source
# File lib/ookkee/builder_proxy.rb, line 3 def initialize(options) @builder = options[:builder] end
Public Instance Methods
credit(account) { |factory| ... }
click to toggle source
# File lib/ookkee/builder_proxy.rb, line 7 def credit(account) factory = Factory.new yield factory factory.entry_type 'credit' factory.account account factory.sheet_name account.sheet_name @builder.registry << factory end
debit(account) { |factory| ... }
click to toggle source
# File lib/ookkee/builder_proxy.rb, line 17 def debit(account) factory = Factory.new yield factory factory.entry_type 'debit' factory.account account factory.sheet_name account.sheet_name @builder.registry << factory end