Sha256: fae474a5765e5c742f5452164887f97c18faa5beff91e93ae9cb3a4e3d0e02e6
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true module Bckbn API_VERSION = "0.1.0" CONFIG_OPTIONS = %i[ access_token api_version api_base log_level worldpay_merchant_id source_ip_address idempotency_key ].freeze Configuration = Struct.new(*CONFIG_OPTIONS, keyword_init: true) do def self.setup new end def initialize(**opts) opts[:api_version] ||= API_VERSION opts[:log_level] ||= :error super(**opts) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bckbn-3.0.1 | lib/bckbn/configuration.rb |
bckbn-3.0.0 | lib/bckbn/configuration.rb |