Class: ActionController::TestSession
- Inherits:
-
Object
- Object
- 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.
275 276 277 |
# File 'lib/action_controller/test_process.rb', line 275 def initialize(attributes = {}) @attributes = attributes end |
Instance Method Details
#[](key) ⇒ Object
279 280 281 |
# File 'lib/action_controller/test_process.rb', line 279 def [](key) @attributes[key] end |
#[]=(key, value) ⇒ Object
283 284 285 |
# File 'lib/action_controller/test_process.rb', line 283 def []=(key, value) @attributes[key] = value end |
#close ⇒ Object
292 |
# File 'lib/action_controller/test_process.rb', line 292 def close() end |
#delete ⇒ Object
293 |
# File 'lib/action_controller/test_process.rb', line 293 def delete() @attributes = {} end |
#session_id ⇒ Object
287 288 289 |
# File 'lib/action_controller/test_process.rb', line 287 def session_id "" end |
#update ⇒ Object
291 |
# File 'lib/action_controller/test_process.rb', line 291 def update() end |