Class: PaystackGateway::Configuration
- Inherits:
-
Object
- Object
- PaystackGateway::Configuration
- Defined in:
- lib/paystack_gateway/configuration.rb
Overview
Encapsulates the configuration options for PaystackGateway including the secret key, logger, logging_options, and log filter.
Instance Attribute Summary collapse
-
#log_filter ⇒ Object
Returns the value of attribute log_filter.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#logging_options ⇒ Object
Returns the value of attribute logging_options.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 |
# File 'lib/paystack_gateway/configuration.rb', line 12 def initialize @logger = Logger.new($stdout) @log_filter = lambda(&:dup) end |
Instance Attribute Details
#log_filter ⇒ Object
Returns the value of attribute log_filter.
10 11 12 |
# File 'lib/paystack_gateway/configuration.rb', line 10 def log_filter @log_filter end |
#logger ⇒ Object
Returns the value of attribute logger.
10 11 12 |
# File 'lib/paystack_gateway/configuration.rb', line 10 def logger @logger end |
#logging_options ⇒ Object
Returns the value of attribute logging_options.
10 11 12 |
# File 'lib/paystack_gateway/configuration.rb', line 10 def end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
10 11 12 |
# File 'lib/paystack_gateway/configuration.rb', line 10 def secret_key @secret_key end |