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-3.4.0 lib/mihari/notifiers/base.rb
mihari-3.3.0 lib/mihari/notifiers/base.rb
mihari-3.2.0 lib/mihari/notifiers/base.rb
mihari-3.1.0 lib/mihari/notifiers/base.rb
mihari-3.0.1 lib/mihari/notifiers/base.rb
mihari-3.0.0 lib/mihari/notifiers/base.rb