Class: Scrobbler::Geo
Instance Method Summary collapse
-
#events(options = {}) ⇒ Object
Gets a list of events based on the location that the Geo object is set to.
- #top_artists(options = {}) ⇒ Object
- #top_tracks(options = {}) ⇒ Object
Methods inherited from Base
api_key=, connection, get, maybe_streamable_attribute, maybe_streamable_node, post_request, request, sanitize, secret=
Instance Method Details
#events(options = {}) ⇒ Object
Gets a list of events based on the location that the Geo object is set to
6 7 8 9 |
# File 'lib/scrobbler/geo.rb', line 6 def events(={}) = () get_response('geo.getevents', :events, 'events', 'event', , [:force]) end |
#top_artists(options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/scrobbler/geo.rb', line 11 def top_artists(={}) = () get_response('geo.gettopartists', :artists, 'topartists', 'artist', , [:force]) end |
#top_tracks(options = {}) ⇒ Object
16 17 18 19 |
# File 'lib/scrobbler/geo.rb', line 16 def top_tracks(={}) = () get_response('geo.gettoptracks', :tracks, 'toptracks', 'track', , [:force]) end |