- def self.current_track
- u = @rdio.call('currentUser', {'extras' => 'lastSongPlayed'})
- artist = u["result"]["lastSongPlayed"]["artist"]
- song = u["result"]["lastSongPlayed"]["name"]
- {artist: artist, song: song}
+ def current_track
+ response = @rdio.call('currentUser', {'extras' => 'lastSongPlayed'})
+ artist = response["result"]["lastSongPlayed"]["artist"]
+ song = response["result"]["lastSongPlayed"]["name"]
+ {:artist => artist, :song => song}