Module: LB::Operation::Log::ClassInterface

Defined in:
lib/lb/operation/log.rb

Overview

Logger class interface

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



9
10
11
# File 'lib/lb/operation/log.rb', line 9

def logger
  @logger
end

Instance Method Details

#with_logger(logger) ⇒ self

Sets the logger.

Parameters:

  • logger (Object)

Returns:

  • (self)


15
16
17
18
# File 'lib/lb/operation/log.rb', line 15

def with_logger(logger)
  @logger = logger
  self
end