Class: XeroKiwi::Throttle::NullLimiter

Inherits:
Object
  • Object
show all
Defined in:
lib/xero_kiwi/throttle/null_limiter.rb

Overview

Default limiter when no ‘throttle:` is passed to Client.new. Does nothing — preserves the pre-throttle behaviour where calls go straight out and the retry middleware reacts to any 429s that come back.

Also documents the limiter contract: any object implementing ‘#acquire(key)` can be passed as `throttle:`.

Instance Method Summary collapse

Instance Method Details

#acquire(_key) ⇒ Object



12
13
14
# File 'lib/xero_kiwi/throttle/null_limiter.rb', line 12

def acquire(_key)
  nil
end