Sha256: eaac47560d152543b2b7fe80343cf42b81fb97c7e1332f4aa6172ac34d2cac8e
Contents?: true
Size: 380 Bytes
Versions: 1
Compression:
Stored size: 380 Bytes
Contents
# frozen_string_literal: true module EpsRapid module RequestConfig def self.configure(**options) previous_config = Thread.current[:http_options] Thread.current[:http_options] = options yield.tap do Thread.current[:http_options] = previous_config end end def self.current Thread.current[:http_options] || {} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eps-rapid-1.4.0 | lib/eps-rapid/request_config.rb |