Class: LastFM::Api::Radio
- Inherits:
-
Object
- Object
- LastFM::Api::Radio
- Defined in:
- lib/lastfm/api/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.
14 15 16 17 |
# File 'lib/lastfm/api/radio.rb', line 14 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.
24 25 26 |
# File 'lib/lastfm/api/radio.rb', line 24 def search( params ) LastFM.get( "radio.search", params ) end |
.tune(params) ⇒ Object
Tune in to a Last.fm radio station.
33 34 35 36 |
# File 'lib/lastfm/api/radio.rb', line 33 def tune( params ) LastFM.requires_authentication LastFM.post( "radio.tune", params ) end |