Class: WiMP::Track
Class Method Summary collapse
-
.search(query, options = {}) ⇒ Object
@options Integer.
Instance Method Summary collapse
-
#album ⇒ Object
String.
-
#album_id ⇒ Object
Integer.
-
#artist ⇒ Object
SimpleArtist.
-
#artist_id ⇒ Object
Integer.
-
#duration ⇒ Object
Integer.
-
#id ⇒ Object
Integer.
-
#popularity ⇒ Object
Integer.
-
#title ⇒ Object
String.
-
#url ⇒ Object
String.
Methods inherited from Base
#execute, execute, #initialize, session, #session
Constructor Details
This class inherits a constructor from WiMP::Base
Class Method Details
Instance Method Details
#album ⇒ Object
Returns String.
66 67 68 |
# File 'lib/wimp/track.rb', line 66 def album @o.album end |
#album_id ⇒ Object
Returns Integer.
52 53 54 |
# File 'lib/wimp/track.rb', line 52 def album_id @o.albumId end |
#artist ⇒ Object
Returns SimpleArtist.
73 74 75 |
# File 'lib/wimp/track.rb', line 73 def artist @o.artist end |
#artist_id ⇒ Object
Returns Integer.
59 60 61 |
# File 'lib/wimp/track.rb', line 59 def artist_id @o.artistId end |
#duration ⇒ Object
Returns Integer.
45 46 47 |
# File 'lib/wimp/track.rb', line 45 def duration @o.duration end |
#id ⇒ Object
Returns Integer.
38 39 40 |
# File 'lib/wimp/track.rb', line 38 def id @o.id end |
#popularity ⇒ Object
Returns Integer.
31 32 33 |
# File 'lib/wimp/track.rb', line 31 def popularity @o.popularity end |
#title ⇒ Object
Returns String.
80 81 82 |
# File 'lib/wimp/track.rb', line 80 def title @o.title end |
#url ⇒ Object
Returns String.
24 25 26 |
# File 'lib/wimp/track.rb', line 24 def url "http://wimpmusic.se/track/#{id}" end |