Sha256: 803a8812ad4e0d812854ca74f5d4ef782de159e71344bac8eedd67aeb9e1515f

Contents?: true

Size: 441 Bytes

Versions: 5

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

module Miteru
  module Notifiers
    class Base < Service
      def call(website)
        raise NotImplementedError
      end

      def callable?
        raise NotImplementedError
      end

      def name
        @name ||= self.class.to_s.split("::").last
      end

      class << self
        def inherited(child)
          super
          Miteru.notifiers << child
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
miteru-2.2.0 lib/miteru/notifiers/base.rb
miteru-2.1.1 lib/miteru/notifiers/base.rb
miteru-2.1.0 lib/miteru/notifiers/base.rb
miteru-2.0.3 lib/miteru/notifiers/base.rb
miteru-2.0.2 lib/miteru/notifiers/base.rb