In the README (https://github.com/tylerhunt/remit#readme) under the Getting Started heading there is some code that doesn't seem to work for me:
remit = Remit::API.new(ACCESS_KEY, SECRET_KEY, true)
response = remit.get_tokens
The last line gives me the following error:
NoMethodError: undefined method `tokens' for #<Remit::GetTokens::Response:0x106fe56d0>
from /Users/socketwiz/.rvm/gems/ree-1.8.7-2011.03/gems/relax-0.0.7/lib/relax/response.rb:32:in `method_missing'
I set my ACCESS_KEY and SECRET_KEY variables, and get_tokens does return a bunch of valid looking data, but the response doesn't seem to have any tokens...any ideas?
Same result with Ruby 1.9.1p376, FWIW, which isn't much. The test suite fails with the same issue.
The readme definitely needs an update. I no longer use remit, and have little time to work on it, but will merge in a pull request with a fix.