Class: Sh::Artist
Instance Attribute Summary collapse
-
#db_id ⇒ Object
Returns the value of attribute db_id.
-
#image_path ⇒ Object
Returns the value of attribute image_path.
-
#info ⇒ Object
Returns the value of attribute info.
-
#mbid ⇒ Object
Returns the value of attribute mbid.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ Artist
constructor
A new instance of Artist.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Artist
Returns a new instance of Artist.
6 7 8 |
# File 'lib/sh_artist.rb', line 6 def initialize @albums = [] end |
Instance Attribute Details
#db_id ⇒ Object
Returns the value of attribute db_id.
4 5 6 |
# File 'lib/sh_artist.rb', line 4 def db_id @db_id end |
#image_path ⇒ Object
Returns the value of attribute image_path.
3 4 5 |
# File 'lib/sh_artist.rb', line 3 def image_path @image_path end |
#info ⇒ Object
Returns the value of attribute info.
3 4 5 |
# File 'lib/sh_artist.rb', line 3 def info @info end |
#mbid ⇒ Object
Returns the value of attribute mbid.
3 4 5 |
# File 'lib/sh_artist.rb', line 3 def mbid @mbid end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/sh_artist.rb', line 3 def name @name end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/sh_artist.rb', line 10 def to_s return self.name end |