Exception: DSU3::RateLimitError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dsu3/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, retry_after) ⇒ RateLimitError

Returns a new instance of RateLimitError.



7
8
9
10
# File 'lib/dsu3/errors.rb', line 7

def initialize(message, retry_after)
  @message = message
  @retry_after = retry_after
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



5
6
7
# File 'lib/dsu3/errors.rb', line 5

def retry_after
  @retry_after
end