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.
-
.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
- .logger ⇒ 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 |
.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
26 27 28 |
# File 'lib/paynow/configuration.rb', line 26 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
22 23 24 |
# File 'lib/paynow/configuration.rb', line 22 def self.digest Paynow::Digest end |
.gateway ⇒ Object
34 35 36 |
# File 'lib/paynow/configuration.rb', line 34 def self.gateway Paynow::Gateway end |
.idempotency_key_builder ⇒ Object
30 31 32 |
# File 'lib/paynow/configuration.rb', line 30 def self.idempotency_key_builder Paynow::IdempotencyKeyBuilder end |
.logger ⇒ Object
42 43 44 |
# File 'lib/paynow/configuration.rb', line 42 def self.logger @logger || @default_logger end |
.payment ⇒ Object
38 39 40 |
# File 'lib/paynow/configuration.rb', line 38 def self.payment Paynow::Payment end |
.request_builder ⇒ Object
18 19 20 |
# File 'lib/paynow/configuration.rb', line 18 def self.request_builder Paynow::RequestBuilder end |