Class: Wee::Session::Page

Inherits:
Object show all
Includes:
LRUCache::Item
Defined in:
lib/wee/session.rb

Instance Attribute Summary collapse

Attributes included from LRUCache::Item

#lru_time

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, state = nil, callbacks = nil) ⇒ Page

Returns a new instance of Page.



53
54
55
# File 'lib/wee/session.rb', line 53

def initialize(id=nil, state=nil, callbacks=nil)
  @id, @state, @callbacks = id, state, callbacks
end

Instance Attribute Details

#callbacksObject

Returns the value of attribute callbacks.



51
52
53
# File 'lib/wee/session.rb', line 51

def callbacks
  @callbacks
end

#idObject

Returns the value of attribute id.



51
52
53
# File 'lib/wee/session.rb', line 51

def id
  @id
end

#stateObject

Returns the value of attribute state.



51
52
53
# File 'lib/wee/session.rb', line 51

def state
  @state
end