Sha256: 12a5341d0cb7a5e433bf0e11054b28e0e91bc4022baf45d84c73a2e21aa17c20

Contents?: true

Size: 475 Bytes

Versions: 26

Compression:

Stored size: 475 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Notifiers
    class Base
      # Validate notifier availability
      #
      # @return [Boolean]
      #
      def valid?
        raise NotImplementedError, "You must implement #{self.class}##{__method__}"
      end

      #
      # Send a notification
      #
      # @return [nil]
      #
      def notify
        raise NotImplementedError, "You must implement #{self.class}##{__method__}"
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
mihari-4.1.2 lib/mihari/notifiers/base.rb
mihari-4.1.1 lib/mihari/notifiers/base.rb
mihari-4.1.0 lib/mihari/notifiers/base.rb
mihari-4.0.0 lib/mihari/notifiers/base.rb
mihari-3.12.0 lib/mihari/notifiers/base.rb
mihari-3.11.0 lib/mihari/notifiers/base.rb
mihari-3.10.1 lib/mihari/notifiers/base.rb
mihari-3.10.0 lib/mihari/notifiers/base.rb
mihari-3.9.2 lib/mihari/notifiers/base.rb
mihari-3.9.1 lib/mihari/notifiers/base.rb
mihari-3.9.0 lib/mihari/notifiers/base.rb
mihari-3.8.1 lib/mihari/notifiers/base.rb
mihari-3.8.0 lib/mihari/notifiers/base.rb
mihari-3.7.2 lib/mihari/notifiers/base.rb
mihari-3.7.1 lib/mihari/notifiers/base.rb
mihari-3.7.0 lib/mihari/notifiers/base.rb
mihari-3.6.1 lib/mihari/notifiers/base.rb
mihari-3.6.0 lib/mihari/notifiers/base.rb
mihari-3.5.0 lib/mihari/notifiers/base.rb
mihari-3.4.1 lib/mihari/notifiers/base.rb