Class: Sh::Artist

Inherits:
Object show all
Defined in:
lib/sh_artist.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeArtist

Returns a new instance of Artist.



6
7
8
# File 'lib/sh_artist.rb', line 6

def initialize
  @albums = []
end

Instance Attribute Details

#db_idObject

Returns the value of attribute db_id.



4
5
6
# File 'lib/sh_artist.rb', line 4

def db_id
  @db_id
end

#image_pathObject

Returns the value of attribute image_path.



3
4
5
# File 'lib/sh_artist.rb', line 3

def image_path
  @image_path
end

#infoObject

Returns the value of attribute info.



3
4
5
# File 'lib/sh_artist.rb', line 3

def info
  @info
end

#mbidObject

Returns the value of attribute mbid.



3
4
5
# File 'lib/sh_artist.rb', line 3

def mbid
  @mbid
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/sh_artist.rb', line 3

def name
  @name
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/sh_artist.rb', line 10

def to_s
  return self.name
end