Class: Rmodel::Setup
- Inherits:
-
Object
- Object
- Rmodel::Setup
- Includes:
- Mongo::Setup, Singleton
- Defined in:
- lib/rmodel/setup.rb,
lib/rmodel/mongo/setup.rb
Instance Method Summary collapse
- #clear ⇒ Object
- #client(name, config) ⇒ Object
-
#initialize ⇒ Setup
constructor
A new instance of Setup.
Methods included from Mongo::Setup
Constructor Details
#initialize ⇒ Setup
Returns a new instance of Setup.
7 8 9 10 |
# File 'lib/rmodel/setup.rb', line 7 def initialize @clients_config = {} @established_clients = {} end |
Instance Method Details
#clear ⇒ Object
16 17 18 |
# File 'lib/rmodel/setup.rb', line 16 def clear @clients_config.clear end |
#client(name, config) ⇒ Object
12 13 14 |
# File 'lib/rmodel/setup.rb', line 12 def client(name, config) @clients_config[name] = config end |