Class: HubStore::Storage::Database

Inherits:
Object
  • Object
show all
Defined in:
lib/hub_store/storage/database.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = { adapter: "sqlite3", database: "hub_store_db" }) ⇒ Database

Returns a new instance of Database.



5
6
7
# File 'lib/hub_store/storage/database.rb', line 5

def initialize(options = { adapter: "sqlite3", database: "hub_store_db" })
  @options = options
end

Instance Method Details

#setupObject



9
10
11
12
# File 'lib/hub_store/storage/database.rb', line 9

def setup
  connect
  create_tables
end