Project

songsterr

0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby wrapper for the Songsterr REST API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.6.1
>= 1.6.7
 Project Readme

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.