Module: Subledger::Domain::DomainClass
- Defined in:
- lib/subledger/domain.rb
Instance Method Summary collapse
- #collection_name ⇒ Object
- #entity_name ⇒ Object
- #keys ⇒ Object
- #raise_unless_creatable(args) ⇒ Object
Instance Method Details
#collection_name ⇒ Object
38 39 40 |
# File 'lib/subledger/domain.rb', line 38 def collection_name self::Entity.instance_variable_get( :@collection_root ).to_sym end |
#entity_name ⇒ Object
34 35 36 |
# File 'lib/subledger/domain.rb', line 34 def entity_name self::Entity.instance_variable_get( :@root ).to_sym end |
#keys ⇒ Object
30 31 32 |
# File 'lib/subledger/domain.rb', line 30 def keys self::Entity.exposures.keys end |
#raise_unless_creatable(args) ⇒ Object
42 43 44 |
# File 'lib/subledger/domain.rb', line 42 def raise_unless_creatable args raise NoMethodError, 'subclasses must provide self.raise_unless_creatable' end |