Class: Paynow::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/paynow/configuration.rb

Overview

Centralized configuration for the paynow_ruby gem

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



15
16
17
# File 'lib/paynow/configuration.rb', line 15

def api_key
  @api_key
end

.api_versionObject

Returns the value of attribute api_version.



15
16
17
# File 'lib/paynow/configuration.rb', line 15

def api_version
  @api_version
end

.hostObject

Returns the value of attribute host.



15
16
17
# File 'lib/paynow/configuration.rb', line 15

def host
  @host
end

.signature_keyObject

Returns the value of attribute signature_key.



15
16
17
# File 'lib/paynow/configuration.rb', line 15

def signature_key
  @signature_key
end

.user_agentObject

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_clientObject



26
27
28
# File 'lib/paynow/configuration.rb', line 26

def self.api_client
  Paynow::PaynowClient
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



10
11
12
# File 'lib/paynow/configuration.rb', line 10

def self.configure
  yield self
end

.digestObject



22
23
24
# File 'lib/paynow/configuration.rb', line 22

def self.digest
  Paynow::Digest
end

.gatewayObject



34
35
36
# File 'lib/paynow/configuration.rb', line 34

def self.gateway
  Paynow::Gateway
end

.idempotency_key_builderObject



30
31
32
# File 'lib/paynow/configuration.rb', line 30

def self.idempotency_key_builder
  Paynow::IdempotencyKeyBuilder
end

.loggerObject



42
43
44
# File 'lib/paynow/configuration.rb', line 42

def self.logger
  @logger || @default_logger
end

.paymentObject



38
39
40
# File 'lib/paynow/configuration.rb', line 38

def self.payment
  Paynow::Payment
end

.request_builderObject



18
19
20
# File 'lib/paynow/configuration.rb', line 18

def self.request_builder
  Paynow::RequestBuilder
end