Class: Scrobbler::Geo
Instance Method Summary (collapse)
-
- (Object) events(options = {})
Gets a list of events based on the location that the Geo object is set to.
- - (Object) top_artists(options = {})
- - (Object) top_tracks(options = {})
Methods inherited from Base
add_cache, api_key=, #call, #call_pageable, fetch_http, get, load_from_cache, #populate_data, post_request, #request, request, sanitize, save_to_cache, secret=, validate_response_document
Instance Method Details
- (Object) events(options = {})
Gets a list of events based on the location that the Geo object is set to
6 7 8 |
# File 'lib/scrobbler/geo.rb', line 6 def events(={}) call('geo.getevents', :events, Event, ) end |
- (Object) top_artists(options = {})
10 11 12 |
# File 'lib/scrobbler/geo.rb', line 10 def top_artists(={}) call('geo.gettopartists', :topartists, Artist, ) end |
- (Object) top_tracks(options = {})
14 15 16 |
# File 'lib/scrobbler/geo.rb', line 14 def top_tracks(={}) call('geo.gettoptracks', :toptracks, Track, ) end |