Class: Scrobbler::Geo

Inherits:
Base
  • Object
show all
Defined in:
lib/scrobbler/geo.rb

Instance Method Summary collapse

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

#events(options = {}) ⇒ Object

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(options={})
  call('geo.getevents', :events, Event, options)
end

#top_artists(options = {}) ⇒ Object



10
11
12
# File 'lib/scrobbler/geo.rb', line 10

def top_artists(options={})
  call('geo.gettopartists', :topartists, Artist, options)
end

#top_tracks(options = {}) ⇒ Object



14
15
16
# File 'lib/scrobbler/geo.rb', line 14

def top_tracks(options={})
  call('geo.gettoptracks', :toptracks, Track, options)
end