Class: MailRoom::Delivery::LetterOpener::Options

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mailbox) ⇒ Options

Returns a new instance of Options.


11
12
13
14
15
# File 'lib/mail_room/delivery/letter_opener.rb', line 11

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

  super(location)
end

Instance Attribute Details

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location


10
11
12
# File 'lib/mail_room/delivery/letter_opener.rb', line 10

def location
  @location
end