Class: ActiveRecord::Base::ConnectionSpecification

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/abstract_adapter.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, adapter_method) ⇒ ConnectionSpecification

Returns a new instance of ConnectionSpecification.



31
32
33
# File 'lib/active_record/connection_adapters/abstract_adapter.rb', line 31

def initialize (config, adapter_method)
  @config, @adapter_method = config, adapter_method
end

Instance Attribute Details

#adapter_methodObject (readonly)

Returns the value of attribute adapter_method.



30
31
32
# File 'lib/active_record/connection_adapters/abstract_adapter.rb', line 30

def adapter_method
  @adapter_method
end

#configObject (readonly)

Returns the value of attribute config.



30
31
32
# File 'lib/active_record/connection_adapters/abstract_adapter.rb', line 30

def config
  @config
end