IlkhamGaysin/simple-images-downloader

View on GitHub
lib/simple_images_downloader/strategies/strategy.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module SimpleImagesDownloader
  module Strategies
    # Base class for all strategies
    class Strategy
      def initialize(_)
      end

      # @abstract
      def process
        raise NotImplementedError, 'must be implemented in subclass'
      end
    end
  end
end