Class: RedisWebManager::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/redis_web_manager/base.rb

Direct Known Subclasses

Action, Connection, Data, Info

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/redis_web_manager/base.rb', line 7

def initialize(instance)
  @instance = instance || redises.keys[0]
end

Instance Attribute Details

#instanceObject

Returns the value of attribute instance.



5
6
7
# File 'lib/redis_web_manager/base.rb', line 5

def instance
  @instance
end