Exception: Muxi::RateLimitError

Inherits:
MuxiError
  • Object
show all
Defined in:
lib/muxi/errors.rb

Instance Attribute Summary collapse

Attributes inherited from MuxiError

#code, #details, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code, retry_after: nil, details: nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



24
25
26
27
# File 'lib/muxi/errors.rb', line 24

def initialize(message, status_code, retry_after: nil, details: nil)
  super("RATE_LIMITED", message, status_code, details)
  @retry_after = retry_after
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



22
23
24
# File 'lib/muxi/errors.rb', line 22

def retry_after
  @retry_after
end