Exception: Zeridion::Flare::RateLimitError

Inherits:
FlareError
  • Object
show all
Defined in:
lib/zeridion_flare/errors.rb

Instance Attribute Summary collapse

Attributes inherited from FlareError

#code, #request_id, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code:, code:, request_id:, limit:, remaining:, retry_after:) ⇒ RateLimitError

Returns a new instance of RateLimitError.



26
27
28
29
30
31
# File 'lib/zeridion_flare/errors.rb', line 26

def initialize(message, status_code:, code:, request_id:, limit:, remaining:, retry_after:)
  super(message, status_code: status_code, code: code, request_id: request_id)
  @limit = limit
  @remaining = remaining
  @retry_after = retry_after
end

Instance Attribute Details

#limitObject (readonly)

Returns the value of attribute limit.



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

def limit
  @limit
end

#remainingObject (readonly)

Returns the value of attribute remaining.



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

def remaining
  @remaining
end

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



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

def retry_after
  @retry_after
end