Class: SimpleImagesDownloader::Strategies::Strategy

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_images_downloader/strategies/strategy.rb

Direct Known Subclasses

FromFileStrategy, FromUrlStrategy

Instance Method Summary collapse

Constructor Details

#initialize(_) ⇒ Strategy

Returns a new instance of Strategy.



6
7
# File 'lib/simple_images_downloader/strategies/strategy.rb', line 6

def initialize(_)
end

Instance Method Details

#processObject

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/simple_images_downloader/strategies/strategy.rb', line 9

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