Class: Datadog::Vendor::ActiveRecord::ConnectionAdapters::ConnectionSpecification
- Inherits:
-
Object
- Object
- Datadog::Vendor::ActiveRecord::ConnectionAdapters::ConnectionSpecification
- Defined in:
- lib/ddtrace/vendor/active_record/connection_specification.rb
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.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, config, adapter_method) ⇒ ConnectionSpecification
constructor
A new instance of ConnectionSpecification.
- #initialize_dup(original) ⇒ Object
- #to_hash ⇒ Object
Constructor Details
#initialize(name, config, adapter_method) ⇒ ConnectionSpecification
Returns a new instance of ConnectionSpecification.
22 23 24 |
# File 'lib/ddtrace/vendor/active_record/connection_specification.rb', line 22 def initialize(name, config, adapter_method) @name, @config, @adapter_method = name, config, adapter_method end |
Instance Attribute Details
#adapter_method ⇒ Object (readonly)
Returns the value of attribute adapter_method.
20 21 22 |
# File 'lib/ddtrace/vendor/active_record/connection_specification.rb', line 20 def adapter_method @adapter_method end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
20 21 22 |
# File 'lib/ddtrace/vendor/active_record/connection_specification.rb', line 20 def config @config end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
20 21 22 |
# File 'lib/ddtrace/vendor/active_record/connection_specification.rb', line 20 def name @name end |
Instance Method Details
#initialize_dup(original) ⇒ Object
26 27 28 |
# File 'lib/ddtrace/vendor/active_record/connection_specification.rb', line 26 def initialize_dup(original) @config = original.config.dup end |
#to_hash ⇒ Object
30 31 32 |
# File 'lib/ddtrace/vendor/active_record/connection_specification.rb', line 30 def to_hash @config.merge(name: @name) end |