Class: HistoryBook::Sequel::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#connection_stringObject

Returns the value of attribute connection_string.



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

def connection_string
  @connection_string
end

Instance Method Details

#create_storeObject



9
10
11
12
# File 'lib/history_book/sequel/configuration.rb', line 9

def create_store
  db = ::Sequel.connect(connection_string)
  HistoryBook::Sequel::Store.new(db)
end