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
- .payment ⇒ Object
- .request_builder ⇒ Object
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/paynow/configuration.rb', line 11 def api_key @api_key end |
.api_version ⇒ Object
Returns the value of attribute api_version.
11 12 13 |
# File 'lib/paynow/configuration.rb', line 11 def api_version @api_version end |
.host ⇒ Object
Returns the value of attribute host.
11 12 13 |
# File 'lib/paynow/configuration.rb', line 11 def host @host end |
.signature_key ⇒ Object
Returns the value of attribute signature_key.
11 12 13 |
# File 'lib/paynow/configuration.rb', line 11 def signature_key @signature_key end |
.user_agent ⇒ Object
Returns the value of attribute user_agent.
11 12 13 |
# File 'lib/paynow/configuration.rb', line 11 def user_agent @user_agent end |
Class Method Details
.api_client ⇒ Object
22 23 24 |
# File 'lib/paynow/configuration.rb', line 22 def self.api_client Paynow::PaynowClient end |
.configure {|_self| ... } ⇒ Object
6 7 8 |
# File 'lib/paynow/configuration.rb', line 6 def self.configure yield self end |
.digest ⇒ Object
18 19 20 |
# File 'lib/paynow/configuration.rb', line 18 def self.digest Paynow::Digest end |
.gateway ⇒ Object
30 31 32 |
# File 'lib/paynow/configuration.rb', line 30 def self.gateway Paynow::Gateway end |
.idempotency_key_builder ⇒ Object
26 27 28 |
# File 'lib/paynow/configuration.rb', line 26 def self.idempotency_key_builder Paynow::IdempotencyKeyBuilder end |
.payment ⇒ Object
34 35 36 |
# File 'lib/paynow/configuration.rb', line 34 def self.payment Paynow::Payment end |
.request_builder ⇒ Object
14 15 16 |
# File 'lib/paynow/configuration.rb', line 14 def self.request_builder Paynow::RequestBuilder end |