Class: DiscordRDA::RateLimiter::RateLimitInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/discord_rda/connection/rate_limiter.rb

Overview

Rate limit info structure

Instance Attribute Summary collapse

Instance Attribute Details

#bucketObject

Returns the value of attribute bucket

Returns:

  • (Object)

    the current value of bucket



12
13
14
# File 'lib/discord_rda/connection/rate_limiter.rb', line 12

def bucket
  @bucket
end

#last_updatedObject

Returns the value of attribute last_updated

Returns:

  • (Object)

    the current value of last_updated



12
13
14
# File 'lib/discord_rda/connection/rate_limiter.rb', line 12

def last_updated
  @last_updated
end

#limitObject

Returns the value of attribute limit

Returns:

  • (Object)

    the current value of limit



12
13
14
# File 'lib/discord_rda/connection/rate_limiter.rb', line 12

def limit
  @limit
end

#remainingObject

Returns the value of attribute remaining

Returns:

  • (Object)

    the current value of remaining



12
13
14
# File 'lib/discord_rda/connection/rate_limiter.rb', line 12

def remaining
  @remaining
end

#resetObject

Returns the value of attribute reset

Returns:

  • (Object)

    the current value of reset



12
13
14
# File 'lib/discord_rda/connection/rate_limiter.rb', line 12

def reset
  @reset
end

#reset_afterObject

Returns the value of attribute reset_after

Returns:

  • (Object)

    the current value of reset_after



12
13
14
# File 'lib/discord_rda/connection/rate_limiter.rb', line 12

def reset_after
  @reset_after
end