Class: ActionController::TestSession
- Defined in:
- lib/action_controller/test_process.rb
Overview
:nodoc:
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
- #close ⇒ Object
- #delete ⇒ Object
-
#initialize(attributes = {}) ⇒ TestSession
constructor
A new instance of TestSession.
- #session_id ⇒ Object
- #update ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ TestSession
Returns a new instance of TestSession.
254 255 256 |
# File 'lib/action_controller/test_process.rb', line 254 def initialize(attributes = {}) @attributes = attributes end |
Instance Method Details
#[](key) ⇒ Object
258 259 260 |
# File 'lib/action_controller/test_process.rb', line 258 def [](key) @attributes[key] end |
#[]=(key, value) ⇒ Object
262 263 264 |
# File 'lib/action_controller/test_process.rb', line 262 def []=(key, value) @attributes[key] = value end |
#close ⇒ Object
271 |
# File 'lib/action_controller/test_process.rb', line 271 def close() end |
#delete ⇒ Object
272 |
# File 'lib/action_controller/test_process.rb', line 272 def delete() @attributes = {} end |
#session_id ⇒ Object
266 267 268 |
# File 'lib/action_controller/test_process.rb', line 266 def session_id "" end |
#update ⇒ Object
270 |
# File 'lib/action_controller/test_process.rb', line 270 def update() end |