Module: EventSourcery::Postgres::TableOwner::ClassMethods
- Defined in:
- lib/event_sourcery/postgres/table_owner.rb
Instance Method Summary collapse
-
#table(name, &block) ⇒ Object
For the given table name assign to give block as the value.
-
#tables ⇒ Hash
Hash of the tables and their corresponding blocks.
Instance Method Details
#table(name, &block) ⇒ Object
For the given table name assign to give block as the value.
23 24 25 |
# File 'lib/event_sourcery/postgres/table_owner.rb', line 23 def table(name, &block) tables[name] = block end |
#tables ⇒ Hash
Hash of the tables and their corresponding blocks.
15 16 17 |
# File 'lib/event_sourcery/postgres/table_owner.rb', line 15 def tables @tables ||= {} end |