Class: Multidb::Configuration
- Inherits:
-
Object
- Object
- Multidb::Configuration
- Defined in:
- lib/multidb/configuration.rb
Instance Attribute Summary collapse
-
#default_adapter ⇒ Object
readonly
Returns the value of attribute default_adapter.
-
#default_handler ⇒ Object
readonly
Returns the value of attribute default_handler.
-
#raw_configuration ⇒ Object
readonly
Returns the value of attribute raw_configuration.
Instance Method Summary collapse
-
#initialize(default_adapter, configuration_hash) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(default_adapter, configuration_hash) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/multidb/configuration.rb', line 5 def initialize(default_adapter, configuration_hash) @default_handler = ActiveRecord::Base.connection_handler @default_adapter = default_adapter @raw_configuration = configuration_hash end |
Instance Attribute Details
#default_adapter ⇒ Object (readonly)
Returns the value of attribute default_adapter.
11 12 13 |
# File 'lib/multidb/configuration.rb', line 11 def default_adapter @default_adapter end |
#default_handler ⇒ Object (readonly)
Returns the value of attribute default_handler.
11 12 13 |
# File 'lib/multidb/configuration.rb', line 11 def default_handler @default_handler end |
#raw_configuration ⇒ Object (readonly)
Returns the value of attribute raw_configuration.
11 12 13 |
# File 'lib/multidb/configuration.rb', line 11 def raw_configuration @raw_configuration end |