Class: Orbit::Session::Cookie
- Inherits:
-
Rack::Session::Cookie
- Object
- Rack::Session::Cookie
- Orbit::Session::Cookie
- Defined in:
- lib/orbit/session/cookie.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
- #delete(key, options) ⇒ Object
-
#initialize(controller, cookies, options = {}) ⇒ Cookie
constructor
A new instance of Cookie.
Constructor Details
#initialize(controller, cookies, options = {}) ⇒ Cookie
Returns a new instance of Cookie.
4 5 6 7 8 9 |
# File 'lib/orbit/session/cookie.rb', line 4 def initialize(controller, , ={}) @controller = controller @cookies = [:secret] = Orbit::Config.session_secret super(, ) end |
Instance Method Details
#[](key) ⇒ Object
11 12 13 |
# File 'lib/orbit/session/cookie.rb', line 11 def [](key) @cookies[key] end |
#[]=(key, value) ⇒ Object
15 16 17 |
# File 'lib/orbit/session/cookie.rb', line 15 def []=(key, value) @cookies[key] = value end |
#delete(key, options) ⇒ Object
19 20 |
# File 'lib/orbit/session/cookie.rb', line 19 def delete(key, ) end |