Class: DB::MySQL::Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/db/mysql/adapter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection_string = LOCAL) ⇒ Adapter

Returns a new instance of Adapter.



30
31
32
# File 'lib/db/mysql/adapter.rb', line 30

def initialize(connection_string = LOCAL)
	@connection_string = connection_string
end

Instance Attribute Details

#connection_stringObject (readonly)

Returns the value of attribute connection_string.



34
35
36
# File 'lib/db/mysql/adapter.rb', line 34

def connection_string
  @connection_string
end

Instance Method Details

#callObject



36
37
38
# File 'lib/db/mysql/adapter.rb', line 36

def call
	Connection.new(self.connection_string)
end