Class: DB::MySQL::Adapter
- Inherits:
-
Object
- Object
- DB::MySQL::Adapter
- Defined in:
- lib/db/mysql/adapter.rb
Instance Attribute Summary collapse
-
#connection_string ⇒ Object
readonly
Returns the value of attribute connection_string.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(connection_string = LOCAL) ⇒ Adapter
constructor
A new instance of Adapter.
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_string ⇒ Object (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
#call ⇒ Object
36 37 38 |
# File 'lib/db/mysql/adapter.rb', line 36 def call Connection.new(self.connection_string) end |