Browse files

Fix copy/paste bug in Error#ratelimit_remaining

  • Loading branch information...
1 parent 7dbb866 commit b74861e75f0cdf7eaafc37162e2f040ae27db002 @sferik committed Apr 19, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/twitter/error.rb
View
6 lib/twitter/error.rb
@@ -9,15 +9,15 @@ def initialize(message, http_headers)
end
def ratelimit_reset
- Time.at(@http_headers.values_at('x-ratelimit-reset', 'X-RateLimit-Reset').detect {|value| value }.to_i)
+ Time.at(@http_headers.values_at('x-ratelimit-reset', 'X-RateLimit-Reset').detect{|value| value}.to_i)
end
def ratelimit_limit
- @http_headers.values_at('x-ratelimit-limit', 'X-RateLimit-Limit').detect {|value| value }.to_i
+ @http_headers.values_at('x-ratelimit-limit', 'X-RateLimit-Limit').detect{|value| value}.to_i
end
def ratelimit_remaining
- @http_headers.values_at('x-ratelimit-limit', 'X-RateLimit-Limit').detect {|value| value }.to_i
+ @http_headers.values_at('x-ratelimit-remaining', 'X-RateLimit-Remaining').detect{|value| value}.to_i
end
def retry_after

0 comments on commit b74861e

Please sign in to comment.