Class: MailRoom::Delivery::Noop

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

Overview

Noop Delivery method

Author:

  • Tony Pitale

Constant Summary collapse

Options =
Class.new do
  def initialize(*)
    super()
  end
end

Instance Method Summary collapse

Constructor Details

#initializeNoop

build a new delivery, do nothing


13
14
# File 'lib/mail_room/delivery/noop.rb', line 13

def initialize(*)
end

Instance Method Details

#deliverObject

accept the delivery, do nothing


17
18
19
# File 'lib/mail_room/delivery/noop.rb', line 17

def deliver(*)
  true
end