Class: Portage::Ucp::RateLimiter Abstract
- Inherits:
-
Object
- Object
- Portage::Ucp::RateLimiter
- Defined in:
- lib/portage/ucp/rate_limiter.rb
Overview
This class is abstract.
Pluggable rate-limit hook for mutating capabilities (§9). The gem bundles no limiter (no storage assumption) — #check! is called before every mutating tool call and must raise Portage::Ucp::RateLimitExceededError to block it. The default, NullRateLimiter, never limits: a consumer opts in to limiting by configuring one, same as the manifest/webhook signing story elsewhere in §9.
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#check!(_key, _capability) ⇒ Object
15 16 17 |
# File 'lib/portage/ucp/rate_limiter.rb', line 15 def check!(_key, _capability) raise NotImplementedError, "#{self.class} must implement #check!" end |