lib/bs2_api/payment/key.rb in bs2_api-1.4.3 vs lib/bs2_api/payment/key.rb in bs2_api-1.5.0
- old
+ new
@@ -1,10 +1,16 @@
# frozen_string_literal: true
module Bs2Api
module Payment
class Key < Base
- def initialize key
+ def initialize(
+ key,
+ client_id: Bs2Api.configuration.client_id,
+ client_secret: Bs2Api.configuration.client_secret
+ )
+ @client_id = client_id
+ @client_secret = client_secret
@key = key
end
private
def url