Class: DB::MariaDB::Adapter
- Inherits:
-
Object
- Object
- DB::MariaDB::Adapter
- Defined in:
- lib/db/mariadb/adapter.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**options) ⇒ Adapter
constructor
A new instance of Adapter.
Constructor Details
#initialize(**options) ⇒ Adapter
Returns a new instance of Adapter.
11 12 13 |
# File 'lib/db/mariadb/adapter.rb', line 11 def initialize(**) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
15 16 17 |
# File 'lib/db/mariadb/adapter.rb', line 15 def @options end |
Instance Method Details
#call ⇒ Object
17 18 19 |
# File 'lib/db/mariadb/adapter.rb', line 17 def call Connection.new(**@options) end |