Module: Subledger::Domain::Roles::Attributable

Included in:
Account, Book, Category, Control, Identity, JournalEntry, Key, Line, Org, Subledger::Domain::Report, Subledger::Domain::ReportRendering
Defined in:
lib/subledger/domain/roles/attributable.rb

Instance Method Summary collapse

Instance Method Details

#attributesObject



5
6
7
8
9
10
# File 'lib/subledger/domain/roles/attributable.rb', line 5

def attributes
  instance_variables.inject( { } ) do | attrs, ivar |
    attrs[ ivar.to_s[1..-1].to_sym ] = instance_variable_get ivar
    attrs
  end
end