Class: Tablature::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/tablature/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
# File 'lib/tablature/configuration.rb', line 9

def initialize
  @database = Tablature::Adapters::Postgres.new
end

Instance Attribute Details

#databaseObject

The Tablature database adapter instance to use when executing SQL.

Defualts to an instance of Adapters::Postgres

Returns:

  • Tablature adapter



7
8
9
# File 'lib/tablature/configuration.rb', line 7

def database
  @database
end