Class: DesktopDelivery::DeliveryMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/desktop_delivery/delivery_method.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ DeliveryMethod

Returns a new instance of DeliveryMethod.



3
4
5
# File 'lib/desktop_delivery/delivery_method.rb', line 3

def initialize(options = {})
  @path = options[:path] if options.key?(:path)
end

Instance Method Details

#deliver!(mail) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/desktop_delivery/delivery_method.rb', line 7

def deliver!(mail)
  @mail = mail

  create_path!
  create_file!
  open_file!
end