Class: W3map::Session

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, redis_config = {}) ⇒ Session

Returns a new instance of Session.

Raises:



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

#dstoreObject (readonly)

Returns the value of attribute dstore.



21
22
23
# File 'lib/w3map.rb', line 21

def dstore
  @dstore
end

#nameObject (readonly)

Returns the value of attribute name.



21
22
23
# File 'lib/w3map.rb', line 21

def name
  @name
end

#queueObject (readonly)

Returns the value of attribute queue.



21
22
23
# File 'lib/w3map.rb', line 21

def queue
  @queue
end