Skooby
Gives you some API like's methods to access Skoob data.
Installation
Add in your Gemfile
gem 'skooby'
Then run bundle install
Usage
Fetching information about a book
book = Skooby::Book.new(id: 108)
book.url
# => "http://skoob.com.br/livro/108"
book.fetch # forces eager load of attributes
# => #<Skooby::Book:0x007faafa445898
# @author="J. K. Rowling",
# @id=108,
# @rating=0.88,
# @title="Harry Potter e a Pedra Filosofal",
# @votes="47688">
Searching books
collection = Skooby::Search.new.book("O Iluminado")
# => [#<Skooby::Book:0x007faafa335098
# @author="Stephen King",
# @id="19733",
# @title="O Iluminado">,
# #<Skooby::Book:0x007faafa333d60
# @author="Deepak Chopra",
# @id="1896",
# @title="Buda">,
# #<Skooby::Book:0x007faafa3327d0
# @author="Helena Jobim",
# @id="4447",
# @title="Antonio Carlos Jobim">, ...]
Contributing
Feel free to contribute with any patch, even removing extra white spaces.
Open a pull request and make us all happy!