module Servicenow
This module is the base for the ServiceNow gem. It's primary interface consists of the 'configure', 'configuration' and 'logger' methods
Constants
- VERSION
Public Class Methods
configuration()
click to toggle source
@return [Servicenow::Configuration]
# File lib/servicenow.rb, line 32 def self.configuration @configuration = OpenStruct.new({}) if @configuration.nil? @configuration end
configure() { |configuration| ... }
click to toggle source
Set up Servicenow
config
@example Set up with username. Password and URL would come from environemnt
Servicenow.configure do |config| config.username = 'foo' end
@yieldparam config [Servicenow::Configuration]
# File lib/servicenow.rb, line 25 def self.configure(&block) @configuration = OpenStruct.new({}) if @configuration.nil? yield @configuration end
logger()
click to toggle source
@todo filter password
@return [Logger] the module logger
# File lib/servicenow.rb, line 49 def self.logger @logger = Logger.new(STDOUT) if @logger.nil? @logger end
logger=(new_logger)
click to toggle source
@param [Logger] new_logger new logger for module
@return [Logger]
# File lib/servicenow.rb, line 41 def self.logger=(new_logger) @logger = new_logger end