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('[email protected]', '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