Exception: PinterestDL::RateLimitError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RateLimitError.



26
27
28
29
# File 'lib/pinterest_dl/errors.rb', line 26

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

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



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

def retry_after
  @retry_after
end