Class: Shortwave::Model::Artist
- 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
-
#albums ⇒ Object
This artist’s top albums.
-
#events ⇒ Object
Events this artist is playing at.
-
#fans ⇒ Object
This artist’s top fans.
-
#similar ⇒ Object
Artists similar to this one.
-
#tags ⇒ Object
This artist’s top tags.
-
#tracks ⇒ Object
This artist’s top tracks.
Methods inherited from BaseModel
facade_name, identified_by, inherited, link_to, #session=, sharable, shoutable, taggable
Instance Method Details
#albums ⇒ Object
This artist’s top albums
42 43 44 |
# File 'lib/shortwave/model/artist.rb', line 42 def albums link :top_albums, :Album, name end |
#events ⇒ Object
Events this artist is playing at.
32 33 34 |
# File 'lib/shortwave/model/artist.rb', line 32 def events link :events, :Event, name end |
#fans ⇒ Object
This artist’s top fans
47 48 49 |
# File 'lib/shortwave/model/artist.rb', line 47 def fans link :top_fans, :User, name end |
#similar ⇒ Object
Artists similar to this one.
37 38 39 |
# File 'lib/shortwave/model/artist.rb', line 37 def similar link :similar, :Artist, name end |
#tags ⇒ Object
This artist’s top tags
52 53 54 |
# File 'lib/shortwave/model/artist.rb', line 52 def link :top_tags, :Tag, name end |
#tracks ⇒ Object
This artist’s top tracks
57 58 59 |
# File 'lib/shortwave/model/artist.rb', line 57 def tracks link :top_tracks, :Track, name end |