Project

itebooks

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby client for the IT-Ebooks API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.6
>= 0

Runtime

~> 0.13.1
 Project Readme

Itebooks

A simple, and really basic Ruby client for the IT Ebooks API. A bit rough around the edges, but does the trick.

Installation

Add this line to your application's Gemfile:

gem 'itebooks'

And then execute:

$ bundle

Or install it yourself as:

$ gem install itebooks

Usage

Search the API

Returns a collection of Book objects

require 'itebooks'

# search the api 
books = Itebooks::Book.search('ruby')

Retrieve a single book by ID

Use the id attribute from a book object

require 'itebooks'

book = Itebooks::Book.find(2973000696)

p book.title # "Metaprogramming Ruby"
p book.sub_title # "Program Like the Ruby Pros"
p book.download # "http://filepi.com/i/a16hVNr" Download link (requires captcha completion)

p book.inspect # displays all attributes for a book

TODO

  • Basic search and retrieve
  • Implement pagination
  • Write some tests (stubbing HTTParty's GET)

Contributing

  1. Fork it ( https://github.com/gary-rafferty/itebooks/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request