Class: LastFM::Geo
- Inherits:
-
Object
- Object
- LastFM::Geo
- Defined in:
- lib/lastfm/geo.rb
Class Method Summary collapse
-
.get_events(params) ⇒ Object
Get all events in a specific location by country or city name.
-
.get_metro_artist_chart(params) ⇒ Object
Get a chart of artists for a metro.
-
.get_metro_hype_artist_chart(params) ⇒ Object
Get a chart of hyped (up and coming) artists for a metro.
-
.get_metro_hype_track_chart(params) ⇒ Object
Get a chart of hyped (up and coming) tracks for a metro.
-
.get_metro_track_chart(params) ⇒ Object
Get a chart of tracks for a metro.
-
.get_metro_unique_artist_chart(params) ⇒ Object
Get a chart of the artists which make that metro unique.
-
.get_metro_unique_track_chart(params) ⇒ Object
Get a chart of the tracks which make that metro unique.
-
.get_metro_weekly_chartlist(params) ⇒ Object
Get a list of available chart periods for this metro, expressed as date ranges which can be sent to the chart services.
-
.get_metros(params) ⇒ Object
Get a list of valid countries and metros for use in the other webservices.
-
.get_top_artists(params) ⇒ Object
Get the most popular artists on Last.fm by country.
-
.get_top_tracks(params) ⇒ Object
Get the most popular tracks on Last.fm by country.
Class Method Details
.get_events(params) ⇒ Object
Get all events in a specific location by country or city name.
14 15 16 |
# File 'lib/lastfm/geo.rb', line 14 def get_events( params ) LastFM.get( "geo.getEvents", !:secure, params ) end |
.get_metro_artist_chart(params) ⇒ Object
Get a chart of artists for a metro.
25 26 27 |
# File 'lib/lastfm/geo.rb', line 25 def get_metro_artist_chart( params ) LastFM.get( "geo.getMetroArtistChart", params ) end |
.get_metro_hype_artist_chart(params) ⇒ Object
Get a chart of hyped (up and coming) artists for a metro.
36 37 38 |
# File 'lib/lastfm/geo.rb', line 36 def get_metro_hype_artist_chart( params ) LastFM.get( "geo.getMetroHypeArtistChart", params ) end |
.get_metro_hype_track_chart(params) ⇒ Object
Get a chart of hyped (up and coming) tracks for a metro.
47 48 49 |
# File 'lib/lastfm/geo.rb', line 47 def get_metro_hype_track_chart( params ) LastFM.get( "geo.getMetroHypeTrackChart", params ) end |
.get_metro_track_chart(params) ⇒ Object
Get a chart of tracks for a metro.
58 59 60 |
# File 'lib/lastfm/geo.rb', line 58 def get_metro_track_chart( params ) LastFM.get( "geo.getMetroTrackChart", params ) end |
.get_metro_unique_artist_chart(params) ⇒ Object
Get a chart of the artists which make that metro unique
69 70 71 |
# File 'lib/lastfm/geo.rb', line 69 def get_metro_unique_artist_chart( params ) LastFM.get( "geo.getMetroUniqueArtistChart", params ) end |
.get_metro_unique_track_chart(params) ⇒ Object
Get a chart of the tracks which make that metro unique
80 81 82 |
# File 'lib/lastfm/geo.rb', line 80 def get_metro_unique_track_chart( params ) LastFM.get( "geo.getMetroUniqueTrackChart", params ) end |
.get_metro_weekly_chartlist(params) ⇒ Object
Get a list of available chart periods for this metro, expressed as date ranges which can be sent to the chart services.
88 89 90 |
# File 'lib/lastfm/geo.rb', line 88 def get_metro_weekly_chartlist( params ) LastFM.get( "geo.getMetroWeeklyChartlist", params ) end |
.get_metros(params) ⇒ Object
Get a list of valid countries and metros for use in the other webservices
96 97 98 |
# File 'lib/lastfm/geo.rb', line 96 def get_metros( params ) LastFM.get( "geo.getMetros", params ) end |
.get_top_artists(params) ⇒ Object
Get the most popular artists on Last.fm by country
106 107 108 |
# File 'lib/lastfm/geo.rb', line 106 def get_top_artists( params ) LastFM.get( "geo.getTopArtists", params ) end |
.get_top_tracks(params) ⇒ Object
Get the most popular tracks on Last.fm by country
117 118 119 |
# File 'lib/lastfm/geo.rb', line 117 def get_top_tracks( params ) LastFM.get( "geo.getTopTracks", params ) end |