Class: Minbox::LogPublisher
- Inherits:
-
Object
- Object
- Minbox::LogPublisher
- Defined in:
- lib/minbox/publisher.rb
Instance Method Summary collapse
-
#initialize(logger = Minbox.logger) ⇒ LogPublisher
constructor
A new instance of LogPublisher.
- #publish(mail) ⇒ Object
Constructor Details
#initialize(logger = Minbox.logger) ⇒ LogPublisher
Returns a new instance of LogPublisher.
7 8 9 |
# File 'lib/minbox/publisher.rb', line 7 def initialize(logger = Minbox.logger) @logger = logger end |
Instance Method Details
#publish(mail) ⇒ Object
11 12 13 |
# File 'lib/minbox/publisher.rb', line 11 def publish(mail) @logger.debug(mail.to_s) end |