Scrobbles songs played by MediaWorks radio stations in New Zealand to last.fm
An example of this code in action can be found a TheEdgeNZ last.fm
As is shown in test.rb
radioStation = RadioStation.new( :url => "url", :username => "lastFmUsername", :password => "lastFmPassword")
radioStation.scrobbleCurrentSonglastFm = LastFM(api_key, secret) #initializatoin
lastFm.getRecentTrack(username) #returns the track name and artist most recently played by "username"
lastFm.scrobble(username, password, args={}) #scrobbles the current song (as long as it includes a title and artist
lastFm.updateNowPlaying(username, password, args={}) # same as for scrobble, but updates the now playing song.