Class: DB::Postgres::Adapter
- Inherits:
-
Object
- Object
- DB::Postgres::Adapter
- Defined in:
- lib/db/postgres/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.
28 29 30 |
# File 'lib/db/postgres/adapter.rb', line 28 def initialize(**) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
32 33 34 |
# File 'lib/db/postgres/adapter.rb', line 32 def @options end |
Instance Method Details
#call ⇒ Object
34 35 36 |
# File 'lib/db/postgres/adapter.rb', line 34 def call Connection.new(**@options) end |