README.rdoc in love-0.0.4 vs README.rdoc in love-0.0.5
- old
+ new
@@ -20,26 +20,30 @@
send multiple requests to get all the pages to iterate over all the available
objects.
== Installation
-Run <tt>gem install love</tt> or add <tt>gem 'love'</tt> to your Gemfile.
+Run <tt>gem install love</tt> or add <tt>gem "love"</tt> to your Gemfile.
== Usage
require 'love'
- tender = Love.connect('account', 'api_key')
+ tender = Love.connect('site', 'api_key')
# Loop over all discussions:
tender.each_discussion do |discussion|
# your awesome stuff here
end
# Also available:
- tender.each_user { |c| ... }
+ tender.each_user { |u| ... }
tender.each_queue { |q| ... }
tender.each_category { |c| ... }
+ # Or get a single record, using an ID or HREF:
+ d = tender.get_discussion('12345')
+ u = tender.get_user('https://api.tenderapp.com/site/users/12345')
+
== About
-This library is Written by Willem van Bergen for Shopify, and is MIT licensed.
+This library is written by Willem van Bergen for Shopify, and is MIT licensed.