Class: Payfast::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/payfast/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#logger=(value) ⇒ Object (writeonly)

Sets the attribute logger

Parameters:

  • value

    the value to set the attribute logger to.



13
14
15
# File 'lib/payfast/config.rb', line 13

def logger=(value)
  @logger = value
end

Class Method Details

.clientObject



20
21
22
# File 'lib/payfast/config.rb', line 20

def client
  Payfast::Client
end

.loggerObject



16
17
18
# File 'lib/payfast/config.rb', line 16

def logger
  @logger ||= Logger.new($stdout)
end