Sha256: 8fdcf9af3f6a48f2c9bc912c76373d07df0b3cf04d93e4c0462768bd80c1d111
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
require 'async_request/engine' module AsyncRequest @config = { queue: 'default', retry: false } def self.configure yield self end def self.queue=(queue) @config[:queue] = queue end def self.retry=(retry_times) raise ArgumentError unless [true, false].include?(retry_times) || retry_times.is_a?(Integer) @config[:retry] = retry_times end def self.config @config end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
async_request-0.0.7 | lib/async_request.rb |