Module: Omnidata
- Defined in:
- lib/omnidata/orm.rb,
lib/omnidata/model.rb,
lib/omnidata/persistence.rb,
lib/omnidata/adapters/adapter_manager.rb,
lib/omnidata/adapters/mongodb_adapter.rb,
lib/omnidata/adapters/abstract_adapter.rb
Defined Under Namespace
Modules: Adapters, Model, Orm, Persistence
Class Method Summary collapse
- .adapter(name) ⇒ Object
-
.setup_database(name, options) ⇒ Object
shortcut method.
Class Method Details
.adapter(name) ⇒ Object
9 10 11 |
# File 'lib/omnidata/adapters/abstract_adapter.rb', line 9 def self.adapter(name) Adapters::AdapterManager.instance.adapter(name) end |
.setup_database(name, options) ⇒ Object
shortcut method
5 6 7 |
# File 'lib/omnidata/adapters/abstract_adapter.rb', line 5 def self.setup_database(name, ) Adapters::AdapterManager.instance.add(name, ) end |