Sha256: ac9a121b80248e147d6da4cc8945e7333b1da3c3b99611426e3a342f94b56f15
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
# frozen_string_literal: true module Bckbn API_VERSION = "0.1.0" CONFIG_OPTIONS = %i[ access_token api_version api_base log_level merchant_id source_ip_address ].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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bckbn-0.2.0 | lib/bckbn/configuration.rb |