sources: rename Sources::Strategies to Source::Extractor.

Rename Sources::Strategies to Source::Extractor. A Source::Extractor
represents a thing that extracts information from a given URL.
This commit is contained in:
evazion
2022-03-24 03:05:10 -05:00
parent 34aa22f90b
commit d9d3c1dfe4
63 changed files with 622 additions and 606 deletions

View File

@@ -0,0 +1,19 @@
# frozen_string_literal: true
module Source
class Extractor
class Null < Source::Extractor
def image_urls
[url]
end
def page_url
nil
end
def artists
ArtistFinder.find_artists(url)
end
end
end
end