Class: LastFM::Api::Geo
- Inherits:
-
Object
- Object
- LastFM::Api::Geo
- Defined in:
- lib/lastfm/api/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.
15 16 17 |
# File 'lib/lastfm/api/geo.rb', line 15 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.
26 27 28 |
# File 'lib/lastfm/api/geo.rb', line 26 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.
37 38 39 |
# File 'lib/lastfm/api/geo.rb', line 37 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.
48 49 50 |
# File 'lib/lastfm/api/geo.rb', line 48 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.
59 60 61 |
# File 'lib/lastfm/api/geo.rb', line 59 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
70 71 72 |
# File 'lib/lastfm/api/geo.rb', line 70 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
81 82 83 |
# File 'lib/lastfm/api/geo.rb', line 81 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.
89 90 91 |
# File 'lib/lastfm/api/geo.rb', line 89 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
97 98 99 |
# File 'lib/lastfm/api/geo.rb', line 97 def get_metros( params ) LastFM.get( "geo.getMetros", params ) end |