Class: Tablature::Configuration
- Inherits:
-
Object
- Object
- Tablature::Configuration
- Defined in:
- lib/tablature/configuration.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
The Tablature database adapter instance to use when executing SQL.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#database ⇒ Object
The Tablature database adapter instance to use when executing SQL.
Defualts to an instance of Adapters::Postgres
7 8 9 |
# File 'lib/tablature/configuration.rb', line 7 def database @database end |