Sha256: 9118c47e2ab05ef27ca3d907b7f6127f614bb91e713d9c31cd6f0b42f1f9f2ae
Contents?: true
Size: 400 Bytes
Versions: 35
Compression:
Stored size: 400 Bytes
Contents
module EbDeployer class ThrottlingHandling include Utils def initialize(delegatee, throttling_error) @delegatee = delegatee @throttling_error = throttling_error end def method_missing(method, *args, &block) super unless @delegatee.respond_to?(method) backoff(@throttling_error) do @delegatee.send(method, *args, &block) end end end end
Version data entries
35 entries across 35 versions & 3 rubygems