Class: Twitter::RateLimitStatus

Inherits:
Base
  • Object
show all
Defined in:
lib/twitter/rate_limit_status.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize, lazy_attr_reader

Constructor Details

This class inherits a constructor from Twitter::Base

Instance Method Details

#reset_timeTime

Time when the authenticating user's rate limit will be reset

Returns:

  • (Time)

10
11
12
# File 'lib/twitter/rate_limit_status.rb', line 10

def reset_time
  @reset_time ||= Time.parse(@attrs['reset_time']) unless @attrs['reset_time'].nil?
end