Interface to the TunkRank API.
Ruby
Switch branches/tags
Nothing to show
Latest commit 8213e79 Mar 25, 2010 @ealdent update gemspec
Permalink
Failed to load latest commit information.
lib bug fixes Mar 25, 2010
test Initial commit to tunkrank. Mar 25, 2010
.document
.gitignore Initial commit to tunkrank. Mar 25, 2010
LICENSE
README.markdown fix some typos, markdown flaws Mar 25, 2010
Rakefile update to version 0.9 and fix gemspec Mar 25, 2010
VERSION
tunkrank.gemspec update gemspec Mar 25, 2010

README.markdown

TunkRank

Interface to the TunkRank API. TunkRank is a tool that measures a person's influence on Twitter by looking at how much attention your followers can actually give you. You can read more here.

Usage

The TunkRank API supports two main methods: score and refresh. The gem includes two convenience methods for returning just the raw score or just the ranking.

require 'tunkrank'
TunkRank.score('ealdent')
TunkRank.raw_score('ealdent')  # => 6.87
TunkRank.ranking('ealdent')    # => 21
TunkRank.refresh('ealdent')

The result of the score method is a Hash that looks like the following

{
  "twitter_user" => {
    "ranking" => 21,
    "raw_tunkrank_score" => 6.87,
    "tunkrank_computed_at" => "2010-03-25T00:20:13Z",
    "num_followers" => 575,
    "num_friends" => 219,
    "twitter_id" => 8454562,
    "screen_name" => "ealdent"
  }
}

Copyright

Copyright (c) 2010 Jason Adams. See LICENSE for details.