public
Description: The game library for HTTPAttack
Homepage: http://oshuma.github.com/HTTPAttack
Clone URL: git://github.com/Oshuma/httpattack-lib.git
name age message
file .gitignore Thu Sep 03 11:23:02 -0700 2009 gem stuff [Oshuma]
file README Sat Sep 12 21:53:49 -0700 2009 updating README [Oshuma]
file Rakefile Thu Sep 03 13:59:33 -0700 2009 no sudo [Oshuma]
directory example/ Fri Sep 11 06:36:33 -0700 2009 starting the rename [Oshuma]
file httpattack-lib.gemspec Sat Sep 12 22:41:15 -0700 2009 class info methods. Closes #4 [Oshuma]
directory lib/ Sat Sep 12 22:41:15 -0700 2009 class info methods. Closes #4 [Oshuma]
directory spec/ Sat Sep 12 22:41:15 -0700 2009 class info methods. Closes #4 [Oshuma]
README
The game library for HTTP Attack.

Item Protocol
-------------
Initializer must take two parameters, a username and an optional hash of settings.

  SomeItem.new('luser', :set_this => 'to_this')

The Item must override the following methods:

stat
------
This method should return an Integer (or maybe a Float), which will be used to
determine the Item strength.

  def stat
    stats['user']['followers_count'].to_i
  end

stats_url
---------
Should return a string which returns the remote API response for the Item.
Currently supports JSON.

  def stats_url
    URI.parse("http://example.com/users/luser.json").to_s
  end