Class: Scrobbler::Geo

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

Instance Method Summary collapse

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(options={})
  options = set_default_options(options)
  get_response('geo.getevents', :events, 'events', 'event', options, options[:force])
end

#top_artists(options = {}) ⇒ Object



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

def top_artists(options={})
  options = set_default_options(options)
  get_response('geo.gettopartists', :artists, 'topartists', 'artist', options, options[:force])
end

#top_tracks(options = {}) ⇒ Object



16
17
18
19
# File 'lib/scrobbler/geo.rb', line 16

def top_tracks(options={})
  options = set_default_options(options)
  get_response('geo.gettoptracks', :tracks, 'toptracks', 'track', options, options[:force])
end