Module: EpsRapid::RequestConfig
- Defined in:
- lib/eps-rapid/request_config.rb
Class Method Summary collapse
Class Method Details
.configure(**options) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/eps-rapid/request_config.rb', line 5 def self.configure(**) previous_config = Thread.current[:http_options] Thread.current[:http_options] = yield.tap do Thread.current[:http_options] = previous_config end end |
.current ⇒ Object
14 15 16 |
# File 'lib/eps-rapid/request_config.rb', line 14 def self.current Thread.current[:http_options] || {} end |