module Ecertic

Constants

LEVEL_DEBUG
LEVEL_ERROR
LEVEL_INFO
VERSION

Attributes

api_base[RW]
api_key[RW]
secret[RW]

Public Class Methods

log_level() click to toggle source
# File lib/ecertic.rb, line 41
def self.log_level
  @log_level
end
log_level=(val) click to toggle source
# File lib/ecertic.rb, line 45
def self.log_level=(val)
  # Support text values for easy log level definition from command line via export
  val = case val
        when "debug"
          LEVEL_DEBUG
        when "info"
          LEVEL_INFO
        else
          val
        end
  if !val.nil? && ![LEVEL_DEBUG, LEVEL_ERROR, LEVEL_INFO].include?(val)
    raise ArgumentError,
          "log_level should only be set to `nil`, `debug` or `info`"
  end
  @log_level = val
end
logger() click to toggle source
# File lib/ecertic.rb, line 62
def self.logger
  @logger
end
logger=(val) click to toggle source
# File lib/ecertic.rb, line 66
def self.logger=(val)
  @logger = val
end