Class: Sh::Album

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAlbum

Returns a new instance of Album.



7
8
9
# File 'lib/sh_album.rb', line 7

def initialize
  @songs = []
end

Instance Attribute Details

#artistObject



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

#dateObject

Returns the value of attribute date.



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

def date
  @date
end

#db_idObject

Returns the value of attribute db_id.



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

def db_id
  @db_id
end

#image_pathObject

Returns the value of attribute image_path.



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

def image_path
  @image_path
end

#infoObject

Returns the value of attribute info.



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

def info
  @info
end

#mbidObject

Returns the value of attribute mbid.



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

def mbid
  @mbid
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/sh_album.rb', line 16

def to_s
  return self.title
end