Class: Sh::Album
Instance Attribute Summary collapse
- #artist ⇒ Object
-
#date ⇒ Object
Returns the value of attribute date.
-
#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.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize ⇒ Album
constructor
A new instance of Album.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Album
Returns a new instance of Album.
7 8 9 |
# File 'lib/sh_album.rb', line 7 def initialize @songs = [] end |
Instance Attribute Details
#artist ⇒ Object
11 12 13 14 |
# File 'lib/sh_album.rb', line 11 def artist #@artist = $db.artists(:id => @artist.db_id).first if @artist and @artist.db_id return @artist end |
#date ⇒ Object
Returns the value of attribute date.
4 5 6 |
# File 'lib/sh_album.rb', line 4 def date @date end |
#db_id ⇒ Object
Returns the value of attribute db_id.
5 6 7 |
# File 'lib/sh_album.rb', line 5 def db_id @db_id end |
#image_path ⇒ Object
Returns the value of attribute image_path.
4 5 6 |
# File 'lib/sh_album.rb', line 4 def image_path @image_path end |
#info ⇒ Object
Returns the value of attribute info.
4 5 6 |
# File 'lib/sh_album.rb', line 4 def info @info end |
#mbid ⇒ Object
Returns the value of attribute mbid.
4 5 6 |
# File 'lib/sh_album.rb', line 4 def mbid @mbid end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/sh_album.rb', line 4 def title @title end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/sh_album.rb', line 16 def to_s return self.title end |