Class: Roadie::Rails::MailInliner
- Inherits:
-
Object
- Object
- Roadie::Rails::MailInliner
- Defined in:
- lib/roadie/rails/mail_inliner.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(email, options) ⇒ MailInliner
constructor
A new instance of MailInliner.
Constructor Details
#initialize(email, options) ⇒ MailInliner
Returns a new instance of MailInliner.
8 9 10 11 |
# File 'lib/roadie/rails/mail_inliner.rb', line 8 def initialize(email, ) @email = email @options = end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
6 7 8 |
# File 'lib/roadie/rails/mail_inliner.rb', line 6 def email @email end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/roadie/rails/mail_inliner.rb', line 6 def @options end |
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/roadie/rails/mail_inliner.rb', line 13 def execute if improve_body if %r{^text/html}.match?(email.content_type) improve_html_part(email.html_part) if email.html_part end email end |