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.
227 228 229 |
# File 'lib/action_controller/test_process.rb', line 227 def initialize(attributes = {}) @attributes = attributes end |
Instance Method Details
#[](key) ⇒ Object
231 232 233 |
# File 'lib/action_controller/test_process.rb', line 231 def [](key) @attributes[key] end |
#[]=(key, value) ⇒ Object
235 236 237 |
# File 'lib/action_controller/test_process.rb', line 235 def []=(key, value) @attributes[key] = value end |
#close ⇒ Object
244 |
# File 'lib/action_controller/test_process.rb', line 244 def close() end |
#delete ⇒ Object
245 |
# File 'lib/action_controller/test_process.rb', line 245 def delete() @attributes = {} end |
#session_id ⇒ Object
239 240 241 |
# File 'lib/action_controller/test_process.rb', line 239 def session_id "" end |
#update ⇒ Object
243 |
# File 'lib/action_controller/test_process.rb', line 243 def update() end |