Class: ActiveRecord::ConnectionAdapters::ConnectionSpecification
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::ConnectionSpecification
- Defined in:
- lib/active_record/connection_adapters/connection_specification.rb
Overview
:nodoc:
Defined Under Namespace
Classes: ConnectionUrlResolver, Resolver
Instance Attribute Summary collapse
-
#adapter_method ⇒ Object
readonly
Returns the value of attribute adapter_method.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config, adapter_method) ⇒ ConnectionSpecification
constructor
A new instance of ConnectionSpecification.
- #initialize_dup(original) ⇒ Object
Constructor Details
#initialize(config, adapter_method) ⇒ ConnectionSpecification
Returns a new instance of ConnectionSpecification.
9 10 11 |
# File 'lib/active_record/connection_adapters/connection_specification.rb', line 9 def initialize(config, adapter_method) @config, @adapter_method = config, adapter_method end |
Instance Attribute Details
#adapter_method ⇒ Object (readonly)
Returns the value of attribute adapter_method.
7 8 9 |
# File 'lib/active_record/connection_adapters/connection_specification.rb', line 7 def adapter_method @adapter_method end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
7 8 9 |
# File 'lib/active_record/connection_adapters/connection_specification.rb', line 7 def config @config end |
Instance Method Details
#initialize_dup(original) ⇒ Object
13 14 15 |
# File 'lib/active_record/connection_adapters/connection_specification.rb', line 13 def initialize_dup(original) @config = original.config.dup end |