Project

skooby

0.01
No commit activity in last 3 years
No release in over 3 years
API like interface to provide information about books available at Skoob.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

Skooby

Build Status

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"

# Force eager load of attributes
book.fetch
# => #<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">, ...]

Reviews

book = Skooby::Book.new(id: 108)
book.reviews(page: 1)
# => {:page=>1,
#  :results=>
#   [#<Skooby::Review:0x007fe45b4f07f8
#     @author="Rafa",
#     @text=
#      "Vi todos os filmes e resolvi ler os livros, acho que J.K tem que ter poderes mágicos para poder escrever um livro magnifico como esse, ela é uma das melhores escritoras atualmente e faz suas história criarem vida.",
#     @title="Harry Potter e a pedra filosofal ">, ...]}

Contributing

Feel free to contribute with any patch, even removing extra white spaces.

Open a pull request and make us all happy!

To start with the development:

$ git clone git@github.com:Irio/skooby.git
$ cd skooby
$ bundle install
$ rake test