Method: Itly#reset

Defined in:
lib/itly/itly.rb

#resetObject

Reset the SDK’s (and all plugins’) state. This method is usually called when a user logs out.

Call reset on all plugins.



308
309
310
311
312
313
314
315
316
317
# File 'lib/itly/itly.rb', line 308

def reset
  # Run only if the object is enabled and was initialized
  return unless was_initialized? && enabled?

  # Log
  logger&.info 'reset()'

  # Run on all plugins
  run_on_plugins(&:reset)
end