refactored sources
This commit is contained in:
@@ -2,6 +2,7 @@ module Sources
|
||||
module Strategies
|
||||
class Base
|
||||
attr_reader :url
|
||||
attr_reader :artist_name, :profile_url, :image_url, :tags
|
||||
|
||||
def self.url_match?(url)
|
||||
false
|
||||
@@ -11,6 +12,7 @@ module Sources
|
||||
@url = url
|
||||
end
|
||||
|
||||
# No remote calls are made until this method is called.
|
||||
def get
|
||||
raise NotImplementedError
|
||||
end
|
||||
@@ -19,26 +21,6 @@ module Sources
|
||||
raise NotImplementedError
|
||||
end
|
||||
|
||||
def artist_name
|
||||
raise NotImplementedError
|
||||
end
|
||||
|
||||
def tags
|
||||
raise NotImplementedError
|
||||
end
|
||||
|
||||
def profile_url
|
||||
raise NotImplementedError
|
||||
end
|
||||
|
||||
def image_url
|
||||
raise NotImplementedError
|
||||
end
|
||||
|
||||
def artist_alias
|
||||
nil
|
||||
end
|
||||
|
||||
def unique_id
|
||||
artist_name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user