Module: ActionMailbox::InboundEmail::Incineratable

Extended by:
ActiveSupport::Concern
Included in:
ActionMailbox::InboundEmail
Defined in:
actionmailbox/app/models/action_mailbox/inbound_email/incineratable.rb

Overview

Ensure that the InboundEmail is automatically scheduled for later incineration if the status has been changed to processed. The later incineration will be invoked at the time specified by the ActionMailbox.incinerate_after time using the IncinerationJob.

Defined Under Namespace

Classes: Incineration

Instance Method Summary collapse

Methods included from ActiveSupport::Concern

append_features, class_methods, extended, included, prepend_features, prepended

Instance Method Details

#incinerateObject

[View source]

17
18
19
# File 'actionmailbox/app/models/action_mailbox/inbound_email/incineratable.rb', line 17

def incinerate
  Incineration.new(self).run
end

#incinerate_laterObject

[View source]

13
14
15
# File 'actionmailbox/app/models/action_mailbox/inbound_email/incineratable.rb', line 13

def incinerate_later
  ActionMailbox::IncinerationJob.schedule self
end