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

.loggerObject



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

def self.logger
  @logger || @default_logger
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



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

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



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

def self.digest
  Paynow::Digest
end

.gatewayObject



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

def self.gateway
  Paynow::Gateway
end

.idempotency_key_builderObject



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

def self.idempotency_key_builder
  Paynow::IdempotencyKeyBuilder
end

.paymentObject



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

def self.payment
  Paynow::Payment
end

.request_builderObject



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

def self.request_builder
  Paynow::RequestBuilder
end