refactored sources

This commit is contained in:
albert
2011-09-29 12:55:15 -04:00
parent f188c6d70d
commit 19add9aa4e
5 changed files with 20 additions and 57 deletions

View File

@@ -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