A Ruby wrapper for the Songsterr REST API
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autotest
lib
spec
Gemfile
LICENSE
README.md
songsterr.gemspec

README.md

songsterr-api

Simple Songsterr API Consumer written in Ruby.

Tested on Ruby 1.9.2

Installation

gem install songsterr

Documentation

See API documentation on here

Usage sample

Finding songs.

# Each case above returns an Array of Song
Songsterr::Song.where(:pattern => "Marley")
Songsterr::Song.where(:artist => "Black Sabbath")
Songsterr::Song.where(:artists => ["Black Sabbath", "Metallica"])

Getting song information:

# Get first Song from some artist
song = Songsterr::Song.where(:artist => "Black Sabbath").first
song.title
# => "Iron Man"
song.revision.tracks
# => [#<Songsterr::Data::Track>, #<Songsterr::Data::Track>, #<Songsterr::Data::Track>, ...]
song.revision.tracks.first.title
# => "Geezer Butler"

License

This library is distributed under the MIT license. Please see the LICENSE file.