class Redd::Error::RateLimited
Raised when the client needs to wait before making another request
Attributes
time[R]
@!attribute [r] time @return [Integer] the seconds to wait before making another request.
Public Class Methods
new(env)
click to toggle source
Calls superclass method
Redd::Error::new
# File lib/redd/error.rb, line 127 def initialize(env) super @time = env[:body][:json][:ratelimit] || 3600 end