Exception: Contentful::Management::RateLimitExceeded
- Defined in:
- lib/contentful/management/error.rb
Overview
429
Constant Summary collapse
- RATE_LIMIT_RESET_HEADER_KEY =
Rate Limit Reset Header Key
'x-contentful-ratelimit-reset'.freeze
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#reset_time ⇒ Object
Time until next available request, in seconds.
- #reset_time? ⇒ Boolean
Methods inherited from Error
Constructor Details
This class inherits a constructor from Contentful::Management::Error
Instance Method Details
#reset_time ⇒ Object
Time until next available request, in seconds.
189 190 191 |
# File 'lib/contentful/management/error.rb', line 189 def reset_time @reset_time ||= @response.raw[RATE_LIMIT_RESET_HEADER_KEY] end |
#reset_time? ⇒ Boolean
182 183 184 185 186 |
# File 'lib/contentful/management/error.rb', line 182 def reset_time? # rubocop:disable Style/DoubleNegation !!reset_time # rubocop:enable Style/DoubleNegation end |