Class: Topsy::RateLimitInfo
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- Topsy::RateLimitInfo
- Defined in:
- lib/topsy/rate_limit_info.rb
Instance Method Summary collapse
Instance Method Details
#refresh_in_seconds ⇒ Object
9 10 11 |
# File 'lib/topsy/rate_limit_info.rb', line 9 def refresh_in_seconds Time.at(reset) - Time.now end |
#reset ⇒ Object
13 14 15 |
# File 'lib/topsy/rate_limit_info.rb', line 13 def reset Time.at(self[:reset]) unless self[:reset].respond_to?(:year) end |