Sha256: 7b8a2e1ec4ca19671d1a2abd4a1a471b4fc76faaf59f6000f216c853b4afec65
Contents?: true
Size: 542 Bytes
Versions: 3
Compression:
Stored size: 542 Bytes
Contents
require 'rubygems' gem 'mash', '~> 0.0.3' require 'mash' gem 'httparty', '~> 0.4.3' require 'httparty' class Readernaut include HTTParty base_uri 'readernaut.com/api/v1/json' format :json def self.books(username, options={}) Mash.new self.get("/#{username}/books/", :query => options) end def self.notes(username, options={}) Mash.new self.get("/#{username}/notes/", :query => options) end def self.contacts(username, options={}) Mash.new self.get("/#{username}/contacts/", :query => options) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
readernaut-0.1.2 | lib/readernaut.rb |
readernaut-0.1.1 | lib/readernaut.rb |
readernaut-0.1.0 | lib/readernaut.rb |