Class: Bs2Api::Payment::Key

Inherits:
Base
  • Object
show all
Defined in:
lib/bs2_api/payment/key.rb

Instance Attribute Summary

Attributes inherited from Base

#payment

Instance Method Summary collapse

Methods inherited from Base

#call

Constructor Details

#initialize(key, client_id: Bs2Api.configuration.client_id, client_secret: Bs2Api.configuration.client_secret, proxy: nil) ⇒ Key

Returns a new instance of Key.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/bs2_api/payment/key.rb', line 6

def initialize(
  key,
  client_id: Bs2Api.configuration.client_id,
  client_secret: Bs2Api.configuration.client_secret,
  proxy: nil
)
  @key = key
  @client_id = client_id
  @client_secret = client_secret
  @proxy = proxy
end