Class: Mack::SessionStore::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/mack/sessions/session_store_base.rb

Direct Known Subclasses

Cookie, Test

Class Method Summary collapse

Class Method Details

.expire(id, request, response, cookies) ⇒ Object

Needs to be defined by the subclass. Raises NoMethodError.

Raises:

  • (NoMethodError)


49
50
51
# File 'lib/mack/sessions/session_store_base.rb', line 49

def expire(id, request, response, cookies)
  raise NoMethodError.new("expire")
end

.expire_all(request, response, cookies) ⇒ Object

Needs to be defined by the subclass. Raises NoMethodError.

Raises:

  • (NoMethodError)


54
55
56
# File 'lib/mack/sessions/session_store_base.rb', line 54

def expire_all(request, response, cookies)
  raise NoMethodError.new("expire_all")
end

.get(id, request, response, cookies) ⇒ Object

Needs to be defined by the subclass. Raises NoMethodError.

Raises:

  • (NoMethodError)


39
40
41
# File 'lib/mack/sessions/session_store_base.rb', line 39

def get(id, request, response, cookies)
  raise NoMethodError.new("get")
end

.set(id, request, response, cookies) ⇒ Object

Needs to be defined by the subclass. Raises NoMethodError.

Raises:

  • (NoMethodError)


44
45
46
# File 'lib/mack/sessions/session_store_base.rb', line 44

def set(id, request, response, cookies)
  raise NoMethodError.new("set")
end