Class: McpToolkit::RateLimiter::Result
- Inherits:
-
Struct
- Object
- Struct
- McpToolkit::RateLimiter::Result
- Defined in:
- lib/mcp_toolkit/rate_limiter.rb
Overview
The outcome of one #call: the throttling decision plus the values the
transport renders into the X-RateLimit-* / Retry-After headers.
Instance Attribute Summary collapse
-
#allowed ⇒ Object
Returns the value of attribute allowed.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#remaining ⇒ Object
Returns the value of attribute remaining.
-
#reset_at ⇒ Object
Returns the value of attribute reset_at.
-
#retry_after ⇒ Object
Returns the value of attribute retry_after.
Instance Method Summary collapse
Instance Attribute Details
#allowed ⇒ Object
Returns the value of attribute allowed
31 32 33 |
# File 'lib/mcp_toolkit/rate_limiter.rb', line 31 def allowed @allowed end |
#limit ⇒ Object
Returns the value of attribute limit
31 32 33 |
# File 'lib/mcp_toolkit/rate_limiter.rb', line 31 def limit @limit end |
#remaining ⇒ Object
Returns the value of attribute remaining
31 32 33 |
# File 'lib/mcp_toolkit/rate_limiter.rb', line 31 def remaining @remaining end |
#reset_at ⇒ Object
Returns the value of attribute reset_at
31 32 33 |
# File 'lib/mcp_toolkit/rate_limiter.rb', line 31 def reset_at @reset_at end |
#retry_after ⇒ Object
Returns the value of attribute retry_after
31 32 33 |
# File 'lib/mcp_toolkit/rate_limiter.rb', line 31 def retry_after @retry_after end |
Instance Method Details
#allowed? ⇒ Boolean
32 33 34 |
# File 'lib/mcp_toolkit/rate_limiter.rb', line 32 def allowed? allowed end |