Class: DB::Postgres::Adapter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
	@options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



32
33
34
# File 'lib/db/postgres/adapter.rb', line 32

def options
  @options
end

Instance Method Details

#callObject



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

def call
	Connection.new(**@options)
end