struct

RateLimitResult

Inherits Struct < Value < Object

Constructors

new(allowed : Bool, remaining : Int32, reset_time : Time, total_requests : Int32)
Source

Instance methods

allowed
Source
allowed=(allowed : Bool)
Source
allowed?

Convenience method to check if request is allowed

Source
rate_limited?

Convenience method to check if request is rate limited

Source
remaining
Source
remaining=(remaining : Int32)
Source
reset_time
Source
reset_time=(reset_time : Time)
Source
to_h

Convert to hash for JSON serialization

Source
total_requests
Source
total_requests=(total_requests : Int32)
Source