Exception: SimpleAuthSdk::RateLimitEncountered

Inherits:
HTTPError show all
Defined in:
lib/simple_auth_sdk/exception.rb

Overview

API rate-limiting encountered

Instance Attribute Summary

Attributes inherited from Exception

#error_data

Instance Method Summary collapse

Methods inherited from HTTPError

#headers, #http_code

Methods inherited from Exception

#initialize

Constructor Details

This class inherits a constructor from SimpleAuthSdk::Exception

Instance Method Details

#resetObject



89
90
91
# File 'lib/simple_auth_sdk/exception.rb', line 89

def reset
  Time.at(Integer(headers[:x_ratelimit_reset])).utc
end