Sha256: b6aa0ec4ecddcb54c74f1e8c41d87f5c216a354cf9fcb4ae2f40bf06e3651781
Contents?: true
Size: 495 Bytes
Versions: 5
Compression:
Stored size: 495 Bytes
Contents
module NxtHttpClient CONFIGURABLE_OPTIONS = %i[request_options base_url x_request_id_proc].freeze DefaultConfig = Struct.new('DefaultConfig', *CONFIGURABLE_OPTIONS) do def initialize(request_options: ActiveSupport::HashWithIndifferentAccess.new, base_url: '', x_request_id_proc: nil) self.request_options = request_options self.base_url = base_url self.x_request_id_proc = x_request_id_proc end def dup self.class.new(**to_h.deep_dup) end end end
Version data entries
5 entries across 5 versions & 1 rubygems