module Quickeebooks

See ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0025_Intuit_Anywhere/0020_Connect/0010_From_Within_Your_App/Implement_OAuth_in_Your_App/Token_Renewal_and_Expiration

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