Class: W3map::Session
- Inherits:
-
Object
- Object
- W3map::Session
- Defined in:
- lib/w3map.rb
Instance Attribute Summary collapse
-
#dstore ⇒ Object
readonly
Returns the value of attribute dstore.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
Instance Method Summary collapse
-
#initialize(name = nil, redis_config = {}) ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize(name = nil, redis_config = {}) ⇒ Session
Returns a new instance of Session.
22 23 24 25 26 |
# File 'lib/w3map.rb', line 22 def initialize(name=nil, redis_config={}) raise InvalidSessionName if name.nil? || name.length == 0 @name = name @redis_config = redis_config end |
Instance Attribute Details
#dstore ⇒ Object (readonly)
Returns the value of attribute dstore.
21 22 23 |
# File 'lib/w3map.rb', line 21 def dstore @dstore end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
21 22 23 |
# File 'lib/w3map.rb', line 21 def name @name end |
#queue ⇒ Object (readonly)
Returns the value of attribute queue.
21 22 23 |
# File 'lib/w3map.rb', line 21 def queue @queue end |