module Quickeebooks
Constants
- VERSION
Attributes
log[W]
set logging on or off
Public Class Methods
log(msg)
click to toggle source
# File lib/quickeebooks.rb, line 28 def log(msg) if log? logger.info(msg) logger.flush if logger.respond_to?(:flush) end end
log?()
click to toggle source
Returns whether to log. Defaults to ‘false’.
# File lib/quickeebooks.rb, line 24 def log? @log ||= false end
logger()
click to toggle source
# File lib/quickeebooks.rb, line 12 def logger @@logger ||= ::Logger.new($stdout) # TODO: replace with a real log file end
logger=(logger)
click to toggle source
# File lib/quickeebooks.rb, line 16 def logger=(logger) @@logger = logger end