Class: RmsApiRuby::Chain::Logger
- Inherits:
-
RmsApiRuby::Chain
- Object
- RmsApiRuby::Chain
- RmsApiRuby::Chain::Logger
- Defined in:
- lib/rms_api_ruby/chain/logger.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(type, message) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(type, message) ⇒ Logger
Returns a new instance of Logger.
4 5 6 7 8 9 |
# File 'lib/rms_api_ruby/chain/logger.rb', line 4 def initialize(type, ) @type = type = @logger = RmsApiRuby.configuration.logger @logger.level = RmsApiRuby.configuration.log_level end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/rms_api_ruby/chain/logger.rb', line 11 def call chain { @logger.send(@type, ) } end |