Class: Minbox::LogPublisher

Inherits:
Object
  • Object
show all
Defined in:
lib/minbox/publisher.rb

Instance Method Summary collapse

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