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.
25 26 27 |
# File 'lib/event_sourcery/postgres/table_owner.rb', line 25 def table(name, &block) tables[name] = block end |
#tables ⇒ Hash
Hash of the tables and their corresponding blocks.
17 18 19 |
# File 'lib/event_sourcery/postgres/table_owner.rb', line 17 def tables @tables ||= {} end |