2020-07-15 19:36:16 -06:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'btcpay/version'
|
|
|
|
|
2020-07-26 15:31:22 -06:00
|
|
|
require 'btcpay/client/config'
|
|
|
|
require 'btcpay/client/base'
|
|
|
|
|
2020-07-18 11:47:59 -06:00
|
|
|
module BtcPay
|
2020-07-15 19:36:16 -06:00
|
|
|
class Error < StandardError; end
|
2020-07-26 15:31:22 -06:00
|
|
|
|
|
|
|
module_function
|
|
|
|
|
|
|
|
def new(**args)
|
|
|
|
config = BtcPay::Client::Config.new(**args)
|
|
|
|
BtcPay::Client::Base.new(config: config, **args)
|
|
|
|
end
|
2020-07-15 19:36:16 -06:00
|
|
|
end
|