Class: CheckoutSdk::AbstractCheckoutSdkBuilder
- Inherits:
-
Object
- Object
- CheckoutSdk::AbstractCheckoutSdkBuilder
show all
- Defined in:
- lib/checkout_sdk/abstract_checkout_sdk_builder.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
13
14
15
|
# File 'lib/checkout_sdk/abstract_checkout_sdk_builder.rb', line 13
def environment
@environment
end
|
13
|
# File 'lib/checkout_sdk/abstract_checkout_sdk_builder.rb', line 13
attr_accessor :environment, :http_client, :multipart_http_client, :logger, :environment_subdomain
|
#http_client ⇒ Faraday::Connection
13
|
# File 'lib/checkout_sdk/abstract_checkout_sdk_builder.rb', line 13
attr_accessor :environment, :http_client, :multipart_http_client, :logger, :environment_subdomain
|
#logger ⇒ Object
Returns the value of attribute logger.
13
14
15
|
# File 'lib/checkout_sdk/abstract_checkout_sdk_builder.rb', line 13
def logger
@logger
end
|
#multipart_http_client ⇒ Faraday::Connection
13
|
# File 'lib/checkout_sdk/abstract_checkout_sdk_builder.rb', line 13
attr_accessor :environment, :http_client, :multipart_http_client, :logger, :environment_subdomain
|
Instance Method Details
#with_environment(environment) ⇒ Object
16
17
18
19
|
# File 'lib/checkout_sdk/abstract_checkout_sdk_builder.rb', line 16
def with_environment(environment)
@environment = environment
self
end
|
#with_environment_subdomain(subdomain) ⇒ Object
39
40
41
42
|
# File 'lib/checkout_sdk/abstract_checkout_sdk_builder.rb', line 39
def with_environment_subdomain(subdomain)
@environment_subdomain = EnvironmentSubdomain.new(@environment, subdomain)
self
end
|
#with_http_client(http_client) ⇒ Object
22
23
24
25
|
# File 'lib/checkout_sdk/abstract_checkout_sdk_builder.rb', line 22
def with_http_client(http_client)
@http_client = http_client
self
end
|
#with_logger(logger) ⇒ Object
33
34
35
36
|
# File 'lib/checkout_sdk/abstract_checkout_sdk_builder.rb', line 33
def with_logger(logger)
@logger = logger
self
end
|
#with_multipart_http_client(multipart_http_client) ⇒ Object
28
29
30
31
|
# File 'lib/checkout_sdk/abstract_checkout_sdk_builder.rb', line 28
def with_multipart_http_client(multipart_http_client)
@multipart_http_client = multipart_http_client
self
end
|