Class: HubStore::Storage::Database
- Inherits:
-
Object
- Object
- HubStore::Storage::Database
- Defined in:
- lib/hub_store/storage/database.rb
Instance Method Summary collapse
-
#initialize(options = { adapter: "sqlite3", database: "hub_store_db" }) ⇒ Database
constructor
A new instance of Database.
- #setup ⇒ Object
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( = { adapter: "sqlite3", database: "hub_store_db" }) @options = end |
Instance Method Details
#setup ⇒ Object
9 10 11 12 |
# File 'lib/hub_store/storage/database.rb', line 9 def setup connect create_tables end |