Class: MusicBox::Catalog::Artist
- Inherits:
-
Group::Item
- Object
- Group::Item
- MusicBox::Catalog::Artist
- Defined in:
- lib/musicbox/catalog/artist.rb
Instance Attribute Summary collapse
-
#aliases ⇒ Object
Returns the value of attribute aliases.
-
#data_quality ⇒ Object
Returns the value of attribute data_quality.
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#images ⇒ Object
FIXME: make Image class?.
-
#members ⇒ Object
Returns the value of attribute members.
-
#name ⇒ Object
Returns the value of attribute name.
-
#namevariations ⇒ Object
Returns the value of attribute namevariations.
-
#profile ⇒ Object
Returns the value of attribute profile.
-
#realname ⇒ Object
Returns the value of attribute realname.
-
#releases_url ⇒ Object
Returns the value of attribute releases_url.
-
#resource_url ⇒ Object
Returns the value of attribute resource_url.
-
#uri ⇒ Object
Returns the value of attribute uri.
-
#urls ⇒ Object
Returns the value of attribute urls.
Attributes inherited from Group::Item
Instance Method Summary collapse
Methods inherited from Group::Item
#fields, #info_file, #initialize, load, #save, #serialize
Constructor Details
This class inherits a constructor from MusicBox::Group::Item
Instance Attribute Details
#aliases ⇒ Object
Returns the value of attribute aliases.
7 8 9 |
# File 'lib/musicbox/catalog/artist.rb', line 7 def aliases @aliases end |
#data_quality ⇒ Object
Returns the value of attribute data_quality.
8 9 10 |
# File 'lib/musicbox/catalog/artist.rb', line 8 def data_quality @data_quality end |
#groups ⇒ Object
Returns the value of attribute groups.
9 10 11 |
# File 'lib/musicbox/catalog/artist.rb', line 9 def groups @groups end |
#images ⇒ Object
FIXME: make Image class?
10 11 12 |
# File 'lib/musicbox/catalog/artist.rb', line 10 def images @images end |
#members ⇒ Object
Returns the value of attribute members.
11 12 13 |
# File 'lib/musicbox/catalog/artist.rb', line 11 def members @members end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/musicbox/catalog/artist.rb', line 12 def name @name end |
#namevariations ⇒ Object
Returns the value of attribute namevariations.
13 14 15 |
# File 'lib/musicbox/catalog/artist.rb', line 13 def namevariations @namevariations end |
#profile ⇒ Object
Returns the value of attribute profile.
14 15 16 |
# File 'lib/musicbox/catalog/artist.rb', line 14 def profile @profile end |
#realname ⇒ Object
Returns the value of attribute realname.
15 16 17 |
# File 'lib/musicbox/catalog/artist.rb', line 15 def realname @realname end |
#releases_url ⇒ Object
Returns the value of attribute releases_url.
16 17 18 |
# File 'lib/musicbox/catalog/artist.rb', line 16 def releases_url @releases_url end |
#resource_url ⇒ Object
Returns the value of attribute resource_url.
17 18 19 |
# File 'lib/musicbox/catalog/artist.rb', line 17 def resource_url @resource_url end |
#uri ⇒ Object
Returns the value of attribute uri.
18 19 20 |
# File 'lib/musicbox/catalog/artist.rb', line 18 def uri @uri end |
#urls ⇒ Object
Returns the value of attribute urls.
19 20 21 |
# File 'lib/musicbox/catalog/artist.rb', line 19 def urls @urls end |
Instance Method Details
#<=>(other) ⇒ Object
44 45 46 |
# File 'lib/musicbox/catalog/artist.rb', line 44 def <=>(other) @name <=> other.name end |
#summary_to_s ⇒ Object
37 38 39 40 41 42 |
# File 'lib/musicbox/catalog/artist.rb', line 37 def summary_to_s '%-8s | %s' % [ @id, @name, ] end |
#to_s ⇒ Object
33 34 35 |
# File 'lib/musicbox/catalog/artist.rb', line 33 def to_s @name end |