Class: Spot::Album

Inherits:
Base
  • Object
show all
Defined in:
lib/spot/album.rb

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

#artistObject



9
10
11
# File 'lib/spot/album.rb', line 9

def artist
  @_artist ||= Spot::Artist.new(@artists.first)
end

#valid?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/spot/album.rb', line 5

def valid?
  available?(@territory) or !@territory
end