Module: JsChat::Storage

Defined in:
lib/jschat/storage/init.rb,
lib/jschat/storage/null.rb,
lib/jschat/storage/mongo.rb

Defined Under Namespace

Modules: MongoDriver, NullDriver

Constant Summary collapse

MEMORY_MESSAGE_LIMIT =
100

Class Method Summary collapse

Class Method Details

.driverObject



9
# File 'lib/jschat/storage/init.rb', line 9

def self.driver ; @driver ; end

.driver=(driver) ⇒ Object



5
6
7
# File 'lib/jschat/storage/init.rb', line 5

def self.driver=(driver)
  @driver = driver
end

.enabled=(enabled) ⇒ Object



11
12
13
# File 'lib/jschat/storage/init.rb', line 11

def self.enabled=(enabled)
  @enabled = enabled
end

.enabled?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/jschat/storage/init.rb', line 15

def self.enabled?
  @enabled
end