Sha256: 76fcf3210cf3f562184b9f62409631d9fff704a0adf35fb6775ceba1605ccad1
Contents?: true
Size: 601 Bytes
Versions: 18
Compression:
Stored size: 601 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'rockstar')) # Please enter your API-Keys into lastfm.yml first. # You can find them here : http://www.lastfm.de/api/account Rockstar.lastfm = YAML.load_file(File.join(File.dirname(__FILE__), 'lastfm.yml')) album = Rockstar::Album.new('Carrie Underwood', 'Some Hearts', :include_info => true) puts "Album: #{album.name}" puts "Artist: #{album.artist}" puts "URL: #{album.url}" puts "Release Date: #{album.release_date.strftime('%m/%d/%Y')}" puts "Large cover: #{album.image_large}" puts puts puts "Summary: #{album.summary}"
Version data entries
18 entries across 18 versions & 3 rubygems