Class: MusicBox::Catalog::Artist

Inherits:
Group::Item show all
Defined in:
lib/musicbox/catalog/artist.rb

Instance Attribute Summary collapse

Attributes inherited from Group::Item

#dir, #id

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

#aliasesObject

Returns the value of attribute aliases.



7
8
9
# File 'lib/musicbox/catalog/artist.rb', line 7

def aliases
  @aliases
end

#data_qualityObject

Returns the value of attribute data_quality.



8
9
10
# File 'lib/musicbox/catalog/artist.rb', line 8

def data_quality
  @data_quality
end

#groupsObject

Returns the value of attribute groups.



9
10
11
# File 'lib/musicbox/catalog/artist.rb', line 9

def groups
  @groups
end

#imagesObject

FIXME: make Image class?



10
11
12
# File 'lib/musicbox/catalog/artist.rb', line 10

def images
  @images
end

#membersObject

Returns the value of attribute members.



11
12
13
# File 'lib/musicbox/catalog/artist.rb', line 11

def members
  @members
end

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/musicbox/catalog/artist.rb', line 12

def name
  @name
end

#namevariationsObject

Returns the value of attribute namevariations.



13
14
15
# File 'lib/musicbox/catalog/artist.rb', line 13

def namevariations
  @namevariations
end

#profileObject

Returns the value of attribute profile.



14
15
16
# File 'lib/musicbox/catalog/artist.rb', line 14

def profile
  @profile
end

#realnameObject

Returns the value of attribute realname.



15
16
17
# File 'lib/musicbox/catalog/artist.rb', line 15

def realname
  @realname
end

#releases_urlObject

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_urlObject

Returns the value of attribute resource_url.



17
18
19
# File 'lib/musicbox/catalog/artist.rb', line 17

def resource_url
  @resource_url
end

#uriObject

Returns the value of attribute uri.



18
19
20
# File 'lib/musicbox/catalog/artist.rb', line 18

def uri
  @uri
end

#urlsObject

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_sObject



37
38
39
40
41
42
# File 'lib/musicbox/catalog/artist.rb', line 37

def summary_to_s
  '%-8s | %s' % [
    @id,
    @name,
  ]
end

#to_sObject



33
34
35
# File 'lib/musicbox/catalog/artist.rb', line 33

def to_s
  @name
end