Class: Mail::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/caffeinate/mail_ext.rb

Overview

Extend Mail::Message to account for a Caffeinate::Mailing

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#caffeinate_mailingObject

Returns the value of attribute caffeinate_mailing.



10
11
12
# File 'lib/caffeinate/mail_ext.rb', line 10

def caffeinate_mailing
  @caffeinate_mailing
end

Instance Method Details

#caffeinate?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/caffeinate/mail_ext.rb', line 19

def caffeinate?
  caffeinate_mailing.present?
end