Sha256: f974764b9d9befb82a572311547f5520b8497ca6dddc369586987bd5469e0bbc

Contents?: true

Size: 317 Bytes

Versions: 14

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

module JunkDrawer
  class Notifier

    # Notifier strategy to raise an error when notification is triggered
    class RaiseStrategy

      include Callable

      def call(message, **context)
        raise NotifierError, "#{message}, context: #{context}"
      end

    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
junk_drawer-2.1.2 lib/junk_drawer/notifier/raise_strategy.rb
junk_drawer-2.1.1 lib/junk_drawer/notifier/raise_strategy.rb
junk_drawer-2.1.0 lib/junk_drawer/notifier/raise_strategy.rb
junk_drawer-2.0.0 lib/junk_drawer/notifier/raise_strategy.rb
junk_drawer-1.8.0 lib/junk_drawer/notifier/raise_strategy.rb
junk_drawer-1.7.0 lib/junk_drawer/notifier/raise_strategy.rb
junk_drawer-1.6.3 lib/junk_drawer/notifier/raise_strategy.rb
junk_drawer-1.6.2 lib/junk_drawer/notifier/raise_strategy.rb
junk_drawer-1.6.1 lib/junk_drawer/notifier/raise_strategy.rb
junk_drawer-1.6.0 lib/junk_drawer/notifier/raise_strategy.rb
junk_drawer-1.5.0 lib/junk_drawer/notifier/raise_strategy.rb
junk_drawer-1.4.0 lib/junk_drawer/notifier/raise_strategy.rb
junk_drawer-1.3.0 lib/junk_drawer/notifier/raise_strategy.rb
junk_drawer-1.2.1 lib/junk_drawer/notifier/raise_strategy.rb