### Home Classes Methods

### In Files

- lib/last_fm/album.rb

### Parent

LastFM::Request

### Methods

- ::getInfo
- ::getTopTags
- ::search

### 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::Album

### Public Class Methods

getInfo(album, artist) click to toggle source

return: album name, artist, (top)tags, tracks ( name, duration (in sec) ) mbid (album), release date, image urls ( different sizes )

        # File lib/last_fm/album.rb, line 14
    14:     def self.getInfo album, artist

    15:       RedisQueryable.look_up_key(:artist, { :hashable => [album, artist] }) do

    16:         album_request "getInfo", "album", album, artist do |info|

    17:           info = LastFM::Validator.validate_mash info, "tracks"

    18:           info = Hashie::Mash.new({ :tracks => [] }) if info.blank?

    19:           update_results [current_class_name, __method__], info

    20:           RedisQueryable.store :artist, { :hashable => [album, artist] }, info.to_json

    21:         end

    22:       end

    23:     end

getTopTags(album, artist) click to toggle source

return: tags ( name, tag´s last.fm-url ) ordered by popularity

        # File lib/last_fm/album.rb, line 26
    26:     def self.getTopTags album, artist

    27:       album_request "getTopTags", "toptags", album, artist

    28:     end

search(query, limit = nil, page = nil) click to toggle source

        # File lib/last_fm/album.rb, line 5
     5:     def self.search query, limit = nil, page = nil

     6:       album_request "search", "albummatches", query, nil, limit, page do |result|

     7:         result = LastFM::Validator.validate_mash result

     8:         result = Hashie::Mash.new({ :album => [] }) if result.blank?

     9:         update_results [current_class_name, __method__], result

    10:       end

    11:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.