Class: CheckoutSdk::StaticKeysBuilder

Inherits:
AbstractCheckoutSdkBuilder show all
Defined in:
lib/checkout_sdk/static_keys_builder.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractCheckoutSdkBuilder

#environment, #environment_subdomain, #http_client, #logger, #multipart_http_client

Instance Method Summary collapse

Methods inherited from AbstractCheckoutSdkBuilder

#with_environment, #with_environment_subdomain, #with_http_client, #with_logger, #with_multipart_http_client

Instance Attribute Details

#public_keyObject

Returns the value of attribute public_key.



5
6
7
# File 'lib/checkout_sdk/static_keys_builder.rb', line 5

def public_key
  @public_key
end

#secret_keyObject

Returns the value of attribute secret_key.



5
6
7
# File 'lib/checkout_sdk/static_keys_builder.rb', line 5

def secret_key
  @secret_key
end

Instance Method Details

#with_public_key(public_key) ⇒ Object

Parameters:

  • public_key (String)


14
15
16
17
# File 'lib/checkout_sdk/static_keys_builder.rb', line 14

def with_public_key(public_key)
  @public_key = public_key
  self
end

#with_secret_key(secret_key) ⇒ Object

Parameters:

  • secret_key (String)


8
9
10
11
# File 'lib/checkout_sdk/static_keys_builder.rb', line 8

def with_secret_key(secret_key)
  @secret_key = secret_key
  self
end