Module: RailsCom::ActionMailbox::InboundEmail

Extended by:
ActiveSupport::Concern
Defined in:
lib/rails_com/action_mailbox/inbound_email.rb

Instance Method Summary collapse

Instance Method Details

#docxObject



12
13
14
15
16
# File 'lib/rails_com/action_mailbox/inbound_email.rb', line 12

def docx
  mail.attachments.map do |attachment|
    Docx::Document.new(attachment.body.to_s) if attachment.filename.end_with?('.docx')
  end.compact
end