Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Ruby wrapper for the Kiva API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION.yml
Octocat-spinner-32 ruby-kiva.gemspec
README
Let's get started building this thing.

I'll be jumping on the Google Group (http://groups.google.com/group/build-kiva) but
feel free to email me if you want to help/contribute/pursue a hostile takeover ;)

Mark McSpadden
markmcspadden@gmail.com

=== Requirements

  json


=== Installation

Run the following if you haven't already:
  gem sources -a http://gems.github.com

Install the gem(s):
  sudo gem install markmcspadden-ruby-kiva


=== Examples

  Kiva::Loan.search(:q => "farming", :status => "fundraising")
    #=> {"paging" => {"total" => 7, "page_size" => 20, "pages" => 1, "page" => 1},
          "loans" => [{ loan 1 attributes },{ loan 2 attributes }]}
  Kiva::Loan.search_results(:q => "fertilizer", :status => "paid") 
    #=> [#<Kiva::Loan:0x14b9ca8 @id=77220, @sector="Agriculture", @borrower_count=1 ... >, #<Kiva::Loan ... >]

  
=== More Info about the Kiva API

http://build.kiva.org
Something went wrong with that request. Please try again.