Class: MailRoom::Delivery::Logger::Options

Inherits:
Struct
  • Object
show all
Defined in:
lib/mail_room/delivery/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mailbox) ⇒ Options

Returns a new instance of Options.



9
10
11
12
13
# File 'lib/mail_room/delivery/logger.rb', line 9

def initialize(mailbox)
  log_path = mailbox.log_path || mailbox.delivery_options[:log_path]

  super(log_path)
end

Instance Attribute Details

#log_pathObject

Returns the value of attribute log_path

Returns:

  • (Object)

    the current value of log_path



8
9
10
# File 'lib/mail_room/delivery/logger.rb', line 8

def log_path
  @log_path
end