Class: GCRA::RateLimitInfo

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

Instance Attribute Summary collapse

Instance Attribute Details

#limitObject

Returns the value of attribute limit

Returns:

  • (Object)

    the current value of limit



2
3
4
# File 'lib/gcra/rate_limiter.rb', line 2

def limit
  @limit
end

#remainingObject

Returns the value of attribute remaining

Returns:

  • (Object)

    the current value of remaining



2
3
4
# File 'lib/gcra/rate_limiter.rb', line 2

def remaining
  @remaining
end

#reset_afterObject

Returns the value of attribute reset_after

Returns:

  • (Object)

    the current value of reset_after



2
3
4
# File 'lib/gcra/rate_limiter.rb', line 2

def reset_after
  @reset_after
end

#retry_afterObject

Returns the value of attribute retry_after

Returns:

  • (Object)

    the current value of retry_after



2
3
4
# File 'lib/gcra/rate_limiter.rb', line 2

def retry_after
  @retry_after
end