Sha256: 4f0195bc04565fa468dc75a767b120f7f38917795beb41595a933dbbba6b43e6
Contents?: true
Size: 393 Bytes
Versions: 6
Compression:
Stored size: 393 Bytes
Contents
module SneakersPacker class Configuration attr_accessor :app_name, :rpc_timeout # default timeout for remote call. unit is seconds DEFAULT_RPC_TIMEOUT = 5 def initialize @app_name = 'unknown' @rpc_timeout = DEFAULT_RPC_TIMEOUT end end def self.conf @conf ||= Configuration.new end def self.configure(&block) block.call self.conf end end
Version data entries
6 entries across 6 versions & 1 rubygems