Exception: Buzz::RateLimitError

Inherits:
Error
  • Object
show all
Defined in:
lib/buzz/error.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#body, #status

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, status: nil, body: nil, retry_after: nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



18
19
20
21
# File 'lib/buzz/error.rb', line 18

def initialize(message = nil, status: nil, body: nil, retry_after: nil)
  @retry_after = retry_after
  super(message, status: status, body: body)
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



16
17
18
# File 'lib/buzz/error.rb', line 16

def retry_after
  @retry_after
end