lib/pdk/analytics/client/noop.rb in pdk-2.3.0 vs lib/pdk/analytics/client/noop.rb in pdk-2.4.0

- old
+ new

@@ -1,25 +1,25 @@ -require 'pdk' - -module PDK - module Analytics - module Client - class Noop - attr_reader :logger - - def initialize(opts) - @logger = opts[:logger] - end - - def screen_view(screen, **_kwargs) - logger.debug "Skipping submission of '#{screen}' screenview because analytics is disabled" - end - - def event(category, action, **_kwargs) - logger.debug "Skipping submission of '#{category} #{action}' event because analytics is disabled" - end - - def finish; end - end - end - end -end +require 'pdk' + +module PDK + module Analytics + module Client + class Noop + attr_reader :logger + + def initialize(opts) + @logger = opts[:logger] + end + + def screen_view(screen, **_kwargs) + logger.debug "Skipping submission of '#{screen}' screenview because analytics is disabled" + end + + def event(category, action, **_kwargs) + logger.debug "Skipping submission of '#{category} #{action}' event because analytics is disabled" + end + + def finish; end + end + end + end +end