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

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

- (Object) top_artists(options = {})



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

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

- (Object) top_tracks(options = {})



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

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