chrisjpowers / fat_num

Keep track of statistics on FatNum.com with this client Ruby gem.

This URL has Read+Write access

name age message
file LICENSE Loading commit data...
file README.rdoc
file fat_num.gemspec
directory lib/
README.rdoc

FatNum

Chris Powers

The FatNum gem is a client for the simple API of www.fatnum.com.

Getting Setup

First off, go to www.fatnum.com and sign up for an account. Create a new statistic and note the five-character token of your stat.

Example

  require 'rubygems'
  require 'fat_num'

  f = FatNum.new('your@email.com', 'password')

  # get your statistic
  response = f.get('e37gh')
  response.digit #=> 120
  response.description #=> 'batches left'

  # update your statistic
  f.update('e37gh', 119)

  # sure enough, our update was successful
  f.get('e37gh').digit #=> 119