Class: Shortwave::Model::Artist

Inherits:
BaseModel show all
Defined in:
lib/shortwave/model/artist.rb

Overview

An artist. Artists are taggable, shoutable and sharable by a user.

Attributes

name

Artist name

mbid

Musicbrainz ID

url

Url of artist page on the Last.fm site

play_count

The number of times this artist has been played

listeners

The number of listeners this artist has

biography_summary

Textual description of this artist

biography

Full textual description of this artist

images

Images of this artist

Instance Method Summary collapse

Methods inherited from BaseModel

facade_name, identified_by, inherited, link_to, #session=, sharable, shoutable, taggable

Instance Method Details

#albumsObject

This artist’s top albums



42
43
44
# File 'lib/shortwave/model/artist.rb', line 42

def albums
  link :top_albums, :Album, name
end

#eventsObject

Events this artist is playing at.



32
33
34
# File 'lib/shortwave/model/artist.rb', line 32

def events
  link :events, :Event, name
end

#fansObject

This artist’s top fans



47
48
49
# File 'lib/shortwave/model/artist.rb', line 47

def fans
  link :top_fans, :User, name
end

#similarObject

Artists similar to this one.



37
38
39
# File 'lib/shortwave/model/artist.rb', line 37

def similar
  link :similar, :Artist, name
end

#tagsObject

This artist’s top tags



52
53
54
# File 'lib/shortwave/model/artist.rb', line 52

def tags
  link :top_tags, :Tag, name
end

#tracksObject

This artist’s top tracks



57
58
59
# File 'lib/shortwave/model/artist.rb', line 57

def tracks
  link :top_tracks, :Track, name
end