Class: UzuUzu::RackSession::Appengine

Inherits:
Rack::Session::Abstract::ID
  • Object
show all
Defined in:
lib/uzuuzu-core/rack_session/appengine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env = nil) ⇒ Appengine

Returns a new instance of Appengine.



13
14
15
16
# File 'lib/uzuuzu-core/rack_session/appengine.rb', line 13

def initialize(env=nil)
  @adapter = :appengine
  super(nil, env)
end

Instance Attribute Details

#adapterObject (readonly)

Returns the value of attribute adapter.



8
9
10
# File 'lib/uzuuzu-core/rack_session/appengine.rb', line 8

def adapter
  @adapter
end

Instance Method Details

#app(app) ⇒ Object



18
19
20
# File 'lib/uzuuzu-core/rack_session/appengine.rb', line 18

def app(app)
  @app = app
end

#destroy_session(env, session_id, options) ⇒ Object



36
37
38
# File 'lib/uzuuzu-core/rack_session/appengine.rb', line 36

def destroy_session(env, session_id, options)
  #TODO
end

#generate_sidObject



22
23
24
25
26
# File 'lib/uzuuzu-core/rack_session/appengine.rb', line 22

def generate_sid
  loop do
    sid = super
  end
end

#get_session(env, sid) ⇒ Object



28
29
30
# File 'lib/uzuuzu-core/rack_session/appengine.rb', line 28

def get_session(env, sid)
  #TODO
end

#set_session(env, session_id, new_session, options) ⇒ Object



32
33
34
# File 'lib/uzuuzu-core/rack_session/appengine.rb', line 32

def set_session(env, session_id, new_session, options)
  #TODO
end