Class: Notion::Api::Errors::TooManyRequests
- Inherits:
-
Faraday::Error
- Object
- Faraday::Error
- Notion::Api::Errors::TooManyRequests
- Defined in:
- lib/notion/api/errors/too_many_requests.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ TooManyRequests
constructor
A new instance of TooManyRequests.
Constructor Details
#initialize(response) ⇒ TooManyRequests
Returns a new instance of TooManyRequests.
8 9 10 11 |
# File 'lib/notion/api/errors/too_many_requests.rb', line 8 def initialize(response) @response = response super 'Too many requests' end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/notion/api/errors/too_many_requests.rb', line 6 def response @response end |