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

Version Path
rockstar-0.8.1 examples/album.rb
rockstar-0.8.0 examples/album.rb
jonaustin-rockstar-0.7.1 examples/album.rb
rockstar-0.7.1 examples/album.rb
rockstar-0.7.0 examples/album.rb
rockstar-0.6.4 examples/album.rb
rockstar-0.6.3 examples/album.rb
rockstar-0.6.2 examples/album.rb
rockstar-custom-0.6.1 examples/album.rb
rockstar-0.6.1 examples/album.rb
rockstar-0.6.0 examples/album.rb
rockstar-0.5.2 examples/album.rb
rockstar-0.5.1 examples/album.rb
rockstar-0.5.0 examples/album.rb
rockstar-0.4.2 examples/album.rb
rockstar-0.4.1 examples/album.rb
rockstar-0.4.0 examples/album.rb
rockstar-0.3.0 examples/album.rb