Class: Bolt::Analytics::NoopClient

Inherits:
Object
  • Object
show all
Defined in:
lib/bolt/analytics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNoopClient

Returns a new instance of NoopClient.



216
217
218
219
# File 'lib/bolt/analytics.rb', line 216

def initialize
  @logger = Bolt::Logger.logger(self)
  @bundled_content = []
end

Instance Attribute Details

#bundled_contentObject

Returns the value of attribute bundled_content.



214
215
216
# File 'lib/bolt/analytics.rb', line 214

def bundled_content
  @bundled_content
end

Instance Method Details

#event(category, action, **_kwargs) ⇒ Object



227
228
229
# File 'lib/bolt/analytics.rb', line 227

def event(category, action, **_kwargs)
  @logger.trace "Skipping submission of '#{category} #{action}' event because analytics is disabled"
end

#finishObject



231
# File 'lib/bolt/analytics.rb', line 231

def finish; end

#report_bundled_content(mode, name) ⇒ Object



225
# File 'lib/bolt/analytics.rb', line 225

def report_bundled_content(mode, name); end

#screen_view(screen, **_kwargs) ⇒ Object



221
222
223
# File 'lib/bolt/analytics.rb', line 221

def screen_view(screen, **_kwargs)
  @logger.trace "Skipping submission of '#{screen}' screenview because analytics is disabled"
end