Class: Wee::Session::Page
- Includes:
- LRUCache::Item
- Defined in:
- lib/wee/session.rb
Instance Attribute Summary collapse
-
#callbacks ⇒ Object
Returns the value of attribute callbacks.
-
#id ⇒ Object
Returns the value of attribute id.
-
#state ⇒ Object
Returns the value of attribute state.
Attributes included from LRUCache::Item
Instance Method Summary collapse
-
#initialize(id = nil, state = nil, callbacks = nil) ⇒ Page
constructor
A new instance of Page.
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
#callbacks ⇒ Object
Returns the value of attribute callbacks.
51 52 53 |
# File 'lib/wee/session.rb', line 51 def callbacks @callbacks end |
#id ⇒ Object
Returns the value of attribute id.
51 52 53 |
# File 'lib/wee/session.rb', line 51 def id @id end |
#state ⇒ Object
Returns the value of attribute state.
51 52 53 |
# File 'lib/wee/session.rb', line 51 def state @state end |