### Home Classes Methods

### In Files

- lib/last_fm/chart.rb

### Parent

LastFM::Request

### Methods

- ::getTopArtists
- ::getTopTracks

### Files

- README_FOR_APP

### Class Index

Quicksearch

- LastFM
- LastFM::Album
- LastFM::Artist
- LastFM::Chart
- LastFM::Request
- LastFM::Track
- LastFM::Validator
- DeviseAuth
- DeviseAuth::RegistrationsController
- DeviseAuth::SessionsController
- Users
- Users::OmniauthCallbacksController
- ApplicationController
- ApplicationHelper
- Artist
- ArtistsController
- ChartsController
- HomeController
- Playlist
- PlaylistsTracks
- RedisQueryable
- SearchController
- Track
- TracksController
- User
- UsersController
- UsersHelper
- YoutubeVideoRating

No matching classes.

# LastFM::Chart

### Public Class Methods

getTopArtists(limit = nil, page = nil) click to toggle source

        # File lib/last_fm/chart.rb, line 4
     4:     def self.getTopArtists limit = nil, page = nil

     5:       RedisQueryable.look_up_key(:chart, { :type => :artists, :page => page }) do

     6:         chart_request "getTopArtists", "artists", limit, page do |artists|

     7:           artists = LastFM::Validator.validate_mash artists, "image"

     8:           update_results [current_class_name, __method__], artists

     9:           RedisQueryable.store :chart, { :type => :artists, :page => page }, artists.to_json

    10:         end

    11:       end

    12:     end

getTopTracks(limit = nil, page = nil) click to toggle source

        # File lib/last_fm/chart.rb, line 14
    14:     def self.getTopTracks limit = nil, page = nil

    15:       RedisQueryable.look_up_key(:chart, { :type => :tracks, :page => page }) do

    16:         chart_request "getTopTracks", "tracks", limit, page do |tracks|

    17:           tracks = LastFM::Validator.validate_mash tracks

    18:           update_results [current_class_name, __method__], tracks

    19:           RedisQueryable.store :chart, { :type => :tracks, :page => page }, tracks.to_json

    20:         end

    21:       end

    22:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.