Exception: BadSessionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rockstar/track.rb

Overview

Below is an example of how to get the top fans for a track.

track = Rockstar::Track.new('Carrie Underwood', 'Before He Cheats')
puts 'Fans'
puts "=" * 4
track.fans.each { |u| puts u.username }

Which would output something like:

track = Rockstar::Track.new('Carrie Underwood', 'Before He Cheats')
puts 'Fans'
puts "=" * 4
track.fans.each { |u| puts "(#{u.weight}) #{u.username}" }

Fans
====
(69163) PimpinRose
(7225) selene204
(7000) CelestiaLegends
(6817) muehllr
(5387) Mudley
(5368) ilovejohnny1984
(5232) MeganIAD
(5132) Veric
(5097) aeVnar
(3390) kristaaan
(3239) kelseaowns
(2780) syndication
(2735) mkumm
(2706) Kimmybeebee
(2648) skorpcroze
(2549) mistergreg
(2449) mlmjcace
(2302) tiNEey
(2169) ajsbabiegirl