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
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
# 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.
Generated with the Darkfish Rdoc Generator 1.1.6.