Class: BBC::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/bbc/client.rb

Instance Method Summary collapse

Instance Method Details

#artists(gid) ⇒ Object



4
5
6
# File 'lib/bbc/client.rb', line 4

def artists(gid)
  request(:get, "http://www.bbc.co.uk/music/artists/#{gid}.json")['artist']
end

#now_playingObject



8
9
10
# File 'lib/bbc/client.rb', line 8

def now_playing
  Array.wrap(request(:get, "http://www.bbc.co.uk/radio1/nowplaying/latest.json")['nowplaying'])
end