Class: ASeriesOfTubes::TubeState::Session
- Inherits:
-
Object
- Object
- ASeriesOfTubes::TubeState::Session
- Defined in:
- lib/a_series_of_tubes/tube_state/session.rb
Instance Attribute Summary collapse
-
#flash ⇒ Object
readonly
Returns the value of attribute flash.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize(request) ⇒ Session
constructor
A new instance of Session.
- #store_session(response) ⇒ Object
Constructor Details
Instance Attribute Details
#flash ⇒ Object (readonly)
Returns the value of attribute flash.
7 8 9 |
# File 'lib/a_series_of_tubes/tube_state/session.rb', line 7 def flash @flash end |
Instance Method Details
#[](key) ⇒ Object
16 17 18 |
# File 'lib/a_series_of_tubes/tube_state/session.rb', line 16 def [] key self.store[key] end |
#[]=(key, value) ⇒ Object
20 21 22 |
# File 'lib/a_series_of_tubes/tube_state/session.rb', line 20 def []= key, value self.store[key] = value end |
#store_session(response) ⇒ Object
24 25 26 27 |
# File 'lib/a_series_of_tubes/tube_state/session.rb', line 24 def store_session response self.store['flash'] = @flash.next response. self.name, end |