Module: ICIMS

Defined in:
lib/icims.rb,
lib/icims/job.rb,
lib/icims/get_request.rb,
lib/icims/requestable.rb,
lib/icims/search_request.rb

Defined Under Namespace

Modules: Requestable Classes: GetRequest, Job, SearchRequest

Class Method Summary collapse

Class Method Details

.loggerObject



23
24
25
26
27
28
# File 'lib/icims.rb', line 23

def self.logger
  @logger ||= begin
    log_file = defined?(Rails) ? [Rails.root, 'log', 'icims.log'].join('/') : 'icims.log'
    Logger.new(log_file)
  end
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (ICIMS)

    the object that the method was called on



19
20
21
# File 'lib/icims.rb', line 19

def self.setup
  yield self
end