Registry / utility / obk
library0.3.2rbrubygemsunverified

A Ruby decorator to throttle method calls on objects.

gem install obk
INSTALL
IMPORT
SIG · OBK
O
obk
utilityrubyv0.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Obk
require 'obk'

Throttle a method to limit calls per time period.

require 'obk' class MyService extend Obk throttle :perform, max_calls: 5, per_seconds: 60 def perform puts 'Doing work' end end service = MyService.new 5.times { service.perform }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
32
Resources
obk — gem install obk · libregistry