Class: ActiveRecord::Base::ConnectionSpecification

Inherits:
Object
  • Object
show all
Defined in:
activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb

Overview

:nodoc:

Defined Under Namespace

Classes: Resolver

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, adapter_method) ⇒ ConnectionSpecification

Returns a new instance of ConnectionSpecification


7
8
9
# File 'activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb', line 7

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


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb', line 6

def adapter_method
  @adapter_method
end

#configObject (readonly)

Returns the value of attribute config


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb', line 6

def config
  @config
end