/ror-pairwise

Ruby on Rails Pairwise API Plugin

Primary LanguageRubyOtherNOASSERTION

= 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.