Module: Subledger::Domain::Roles::Postable
- Included in:
- ActiveJournalEntry, PostedJournalEntry, PostingJournalEntry
- Defined in:
- lib/subledger/domain/roles/postable.rb
Instance Method Summary collapse
Instance Method Details
#post ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/subledger/domain/roles/postable.rb', line 5 def post validate_postability from_db = read from_store = store.post self if from_db.kind_of? posted_klass from_db else from_store end end |
#posted_klass ⇒ Object
23 24 25 |
# File 'lib/subledger/domain/roles/postable.rb', line 23 def posted_klass PostedJournalEntry end |
#posting_klass ⇒ Object
19 20 21 |
# File 'lib/subledger/domain/roles/postable.rb', line 19 def posting_klass PostingJournalEntry end |