Class: Paynow::Configuration
- Inherits:
-
Object
- Object
- Paynow::Configuration
- Defined in:
- lib/paynow/configuration.rb
Overview
Centralized configuration for the paynow_ruby gem
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
-
.api_version ⇒ Object
Returns the value of attribute api_version.
-
.host ⇒ Object
Returns the value of attribute host.
- .logger ⇒ Object
-
.signature_key ⇒ Object
Returns the value of attribute signature_key.
-
.user_agent ⇒ Object
Returns the value of attribute user_agent.
Class Method Summary collapse
- .api_client ⇒ Object
- .configure {|_self| ... } ⇒ Object
- .digest ⇒ Object
- .gateway ⇒ Object
- .idempotency_key_builder ⇒ Object
- .payment ⇒ Object
- .request_builder ⇒ Object
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
15 16 17 |
# File 'lib/paynow/configuration.rb', line 15 def api_key @api_key end |
.api_version ⇒ Object
Returns the value of attribute api_version.
15 16 17 |
# File 'lib/paynow/configuration.rb', line 15 def api_version @api_version end |
.host ⇒ Object
Returns the value of attribute host.
15 16 17 |
# File 'lib/paynow/configuration.rb', line 15 def host @host end |
.logger ⇒ Object
43 44 45 |
# File 'lib/paynow/configuration.rb', line 43 def self.logger @logger || @default_logger end |
.signature_key ⇒ Object
Returns the value of attribute signature_key.
15 16 17 |
# File 'lib/paynow/configuration.rb', line 15 def signature_key @signature_key end |
.user_agent ⇒ Object
Returns the value of attribute user_agent.
15 16 17 |
# File 'lib/paynow/configuration.rb', line 15 def user_agent @user_agent end |
Class Method Details
.api_client ⇒ Object
27 28 29 |
# File 'lib/paynow/configuration.rb', line 27 def self.api_client Paynow::PaynowClient end |
.configure {|_self| ... } ⇒ Object
10 11 12 |
# File 'lib/paynow/configuration.rb', line 10 def self.configure yield self end |
.digest ⇒ Object
23 24 25 |
# File 'lib/paynow/configuration.rb', line 23 def self.digest Paynow::Digest end |
.gateway ⇒ Object
35 36 37 |
# File 'lib/paynow/configuration.rb', line 35 def self.gateway Paynow::Gateway end |
.idempotency_key_builder ⇒ Object
31 32 33 |
# File 'lib/paynow/configuration.rb', line 31 def self.idempotency_key_builder Paynow::IdempotencyKeyBuilder end |
.payment ⇒ Object
39 40 41 |
# File 'lib/paynow/configuration.rb', line 39 def self.payment Paynow::Payment end |
.request_builder ⇒ Object
19 20 21 |
# File 'lib/paynow/configuration.rb', line 19 def self.request_builder Paynow::RequestBuilder end |