Class: RiveScript::NullSessionManager

Inherits:
SessionManager show all
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

Methods inherited from SessionManager

#default_session

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_allObject



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_allObject



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