Class: Paleth::Db

Inherits:
Object
  • Object
show all
Includes:
Liar
Defined in:
lib/paleth/db.rb

Overview

Wraps a local leveldb database FIXME: I've been developping using Mist which doesn't seem to support the db_xxx API

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Liar

#make_promise

Constructor Details

#initialize(core, db_name) ⇒ Db

Returns a new instance of Db.


12
13
14
15
# File 'lib/paleth/db.rb', line 12

def initialize(core, db_name)
  @core = core
  @db_name = db_name
end

Instance Attribute Details

#coreObject (readonly)

Returns the value of attribute core


10
11
12
# File 'lib/paleth/db.rb', line 10

def core
  @core
end

#db_nameObject (readonly)

Returns the value of attribute db_name


10
11
12
# File 'lib/paleth/db.rb', line 10

def db_name
  @db_name
end