Class: RiveScript::NullSessionManager
- Inherits:
-
SessionManager
- Object
- SessionManager
- RiveScript::NullSessionManager
- Defined in:
- lib/rivescript/sessions.rb
Overview
Session manager that does not remember any user variables. Mostly useful for unit tests.
Instance Method Summary collapse
- #freeze(_username) ⇒ Object
- #get(_username, _key) ⇒ Object
- #get_all ⇒ Object
- #get_any(_username) ⇒ Object
- #reset(_username) ⇒ Object
- #reset_all ⇒ Object
- #set(_username, _data) ⇒ Object
- #thaw(_username, _action = "thaw") ⇒ Object
Methods inherited from SessionManager
Instance Method Details
#freeze(_username) ⇒ Object
197 198 199 |
# File 'lib/rivescript/sessions.rb', line 197 def freeze(_username) nil end |
#get(_username, _key) ⇒ Object
177 178 179 |
# File 'lib/rivescript/sessions.rb', line 177 def get(_username, _key) "undefined" end |
#get_all ⇒ Object
185 186 187 |
# File 'lib/rivescript/sessions.rb', line 185 def get_all {} end |
#get_any(_username) ⇒ Object
181 182 183 |
# File 'lib/rivescript/sessions.rb', line 181 def get_any(_username) nil end |
#reset(_username) ⇒ Object
189 190 191 |
# File 'lib/rivescript/sessions.rb', line 189 def reset(_username) nil end |
#reset_all ⇒ Object
193 194 195 |
# File 'lib/rivescript/sessions.rb', line 193 def reset_all nil end |
#set(_username, _data) ⇒ Object
173 174 175 |
# File 'lib/rivescript/sessions.rb', line 173 def set(_username, _data) nil end |
#thaw(_username, _action = "thaw") ⇒ Object
201 202 203 |
# File 'lib/rivescript/sessions.rb', line 201 def thaw(_username, _action = "thaw") nil end |