Class: Spot::Album
Instance Attribute Summary
Attributes inherited from Base
#name
Instance Method Summary
collapse
Methods inherited from Base
#available?, #href, #initialize, #popularity
Constructor Details
This class inherits a constructor from Spot::Base
Instance Method Details
#artist ⇒ Object
9
10
11
|
# File 'lib/spot/album.rb', line 9
def artist
@_artist ||= Spot::Artist.new(@artists.first)
end
|
#valid? ⇒ Boolean
5
6
7
|
# File 'lib/spot/album.rb', line 5
def valid?
available?(@territory) or !@territory
end
|