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.



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

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

Instance Attribute Details

#bundled_contentObject

Returns the value of attribute bundled_content.



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

def bundled_content
  @bundled_content
end

Instance Method Details

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



246
247
248
# File 'lib/bolt/analytics.rb', line 246

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

#finishObject



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

def finish; end

#plan_counts(_) ⇒ Object



242
243
244
# File 'lib/bolt/analytics.rb', line 242

def plan_counts(_)
  {}
end

#report_bundled_content(mode, name) ⇒ Object



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

def report_bundled_content(mode, name); end

#screen_view(screen, **_kwargs) ⇒ Object



236
237
238
# File 'lib/bolt/analytics.rb', line 236

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