Class: Scenic::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration



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

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

Instance Attribute Details

#databaseObject

The Scenic database adapter instance to use when executing SQL.

Defualts to an instance of Adapters::Postgres

Returns:

  • Scenic adapter



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

def database
  @database
end