LastFM::Track

Public Class Methods

getInfo(track, artist) click to toggle source

return: track name, id, (top)tags, artist, duration (in msec), album ( artist, title, image urls ( different sizes) ), mbid

    # File lib/last_fm/track.rb, line 13
13:     def self.getInfo track, artist

14:       track_request "getInfo", nil, track, artist

15:     end
getSimilar(track, artist, limit = nil) click to toggle source

return: tracks ( name, artist (name, mbid), duration (in msec), image urls (sometimes) )

    # File lib/last_fm/track.rb, line 18
18:     def self.getSimilar track, artist, limit = nil

19:       track_request "getSimilar", "similartracks", track, artist, limit

20:     end
getTopTags(track, artist) click to toggle source

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

    # File lib/last_fm/track.rb, line 23
23:     def self.getTopTags track, artist

24:       track_request "getTopTags", "toptags", track, artist

25:     end
search(query, limit = nil, page = nil) click to toggle source
    # File lib/last_fm/track.rb, line 4
 4:     def self.search query, limit = nil, page = nil

 5:       track_request "search", "trackmatches", query, nil, limit, page do |result|

 6:         result = LastFM::Validator.validate_mash result

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

 8:         update_results [current_class_name, __method__], result

 9:       end

10:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.