pld / ror-pairwise

Ruby on Rails Pairwise API Plugin

Home Page:http://code.helioid.com/ror-pairwise/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

= Pairwise API

Library to connect to the Pairwise API version 0.2.0.  Defines the Pairwise class containing public methods that may be called in Controllers and Models.

To configure your connection to the pairwise web service pass a hash of options to Pairwise.servers as below.

==== Examples


<em>Configure pairwise server:</em>

<tt>Pairwise.server({</tt>
  :host => "pairwise.photocracy.org",
  :user => "user",
  :password => "password",
  :protocol => "https"
<tt>})</tt>

<em>Create questions 'What?' and 'Comment?':</em>

<tt>ids = Pairwise.question(["What?", "Comment?"])</tt>


Copyright (c) 2008-2009 Peter Lubell-Doughtie and the Trustees of Princeton University.  For additional license information see text file LICENSE.

About

Ruby on Rails Pairwise API Plugin

http://code.helioid.com/ror-pairwise/

License:Other


Languages

Language:Ruby 100.0%