Sha256: 9580c8cf95a84a41a914bee5c4690e085750ae99083acc820cf79bb35e44d7db

Contents?: true

Size: 350 Bytes

Versions: 44

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

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

      def notify
        raise NotImplementedError, "You must implement #{self.class}##{__method__}"
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
mihari-2.4.0 lib/mihari/notifiers/base.rb
mihari-2.3.1 lib/mihari/notifiers/base.rb
mihari-2.3.0 lib/mihari/notifiers/base.rb
mihari-2.2.1 lib/mihari/notifiers/base.rb
mihari-2.2.0 lib/mihari/notifiers/base.rb
mihari-2.1.0 lib/mihari/notifiers/base.rb
mihari-2.0.0 lib/mihari/notifiers/base.rb
mihari-1.5.1 lib/mihari/notifiers/base.rb
mihari-1.5.0 lib/mihari/notifiers/base.rb
mihari-1.4.1 lib/mihari/notifiers/base.rb
mihari-1.4.0 lib/mihari/notifiers/base.rb
mihari-1.3.2 lib/mihari/notifiers/base.rb
mihari-1.3.1 lib/mihari/notifiers/base.rb
mihari-1.3.0 lib/mihari/notifiers/base.rb
mihari-1.2.1 lib/mihari/notifiers/base.rb
mihari-1.2.0 lib/mihari/notifiers/base.rb
mihari-1.1.1 lib/mihari/notifiers/base.rb
mihari-1.1.0 lib/mihari/notifiers/base.rb
mihari-1.0.1 lib/mihari/notifiers/base.rb
mihari-1.0.0 lib/mihari/notifiers/base.rb