RubyGems Navigation menu

diggr 0.1.2

Diggr is a ruby wrapper for the Digg API. Diggr strives to remain consistent with the Digg API endpoints listed here: http://apidoc.digg.com/CompleteList. Endpoints are created in Diggr with method calls. Each node in an endpoint becomes a method call and each node which is an argument becomes an argument to the previous method. As an example, the following endpoint /user/{user name} in which the user name is "johndoe" would be created with this Diggr call: diggr.user("johndoe") To send the request to the Digg API and retrieve the results of the call, Diggr requests are terminated in one of two ways. 1. Using the fetch method. By ending your request with the fetch method, your result will be returned to you. If the request is singular, you will receive a single object as a response. If the request is plural, you will receive a collection of objects stored in an array. 2. Using any Enumerable method. This works only on plural requests. In this case, it is unnecessary to use the fetch method. See the synopsis for examples of each of these types of calls. Options such as count or offset can be set using the options method and providing a hash of arguments. See synopsis for more information. Note: In an effort to remain consistent with the Digg API, some method names do not follow the ruby idiom of underscores. Although somewhat ugly, this allows a user to read the Digg API and understand the exact methods to call in Diggr to achieve their desired results.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 0.1.2 - September 14, 2008* (11.0 KB)
  2. 0.1.1 - September 08, 2008* (10.5 KB)
  3. 0.1.0 - September 05, 2008* (10.5 KB)

Runtime 相依性套件 (3):

activesupport >= 2.1.1
json >= 1.1.3
need >= 1.0.2

Development 相依性套件 (1):

hoe >= 1.7.0

擁有者:

作者:

  • Drew Olson

SHA 256 checksum:

7944512642eaa1afe0bdea8f1ead2947d2241c8e12cf98d9cb6359169efb9939

總下載次數 13,538

這個版本 5,210

License:

Ruby 版本需求:

相關連結: