Exception: LinearApi::RateLimitError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = 'Rate limited', retry_after: nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



27
28
29
30
# File 'lib/linear_api.rb', line 27

def initialize(message = 'Rate limited', retry_after: nil)
  @retry_after = retry_after
  super(message)
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



25
26
27
# File 'lib/linear_api.rb', line 25

def retry_after
  @retry_after
end