Class: LastFM::Radio
- Inherits:
-
Object
- Object
- LastFM::Radio
- Defined in:
- lib/lastfm/radio.rb
Class Method Summary collapse
-
.get_playlist(params) ⇒ Object
Fetch new radio content periodically in an XSPF format.
-
.search(params) ⇒ Object
Resolve the name of a resource into a station depending on which resource it is most likely to represent.
-
.tune(params) ⇒ Object
Tune in to a Last.fm radio station.
Class Method Details
.get_playlist(params) ⇒ Object
Fetch new radio content periodically in an XSPF format.
13 14 15 16 |
# File 'lib/lastfm/radio.rb', line 13 def get_playlist( params ) LastFM.requires_authentication LastFM.get( "radio.getPlaylist", params, :secure ) end |
.search(params) ⇒ Object
Resolve the name of a resource into a station depending on which resource it is most likely to represent.
23 24 25 |
# File 'lib/lastfm/radio.rb', line 23 def search( params ) LastFM.get( "radio.search", params ) end |
.tune(params) ⇒ Object
Tune in to a Last.fm radio station.
32 33 34 35 |
# File 'lib/lastfm/radio.rb', line 32 def tune( params ) LastFM.requires_authentication LastFM.post( "radio.tune", params ) end |