class SurenotifyRails::Attachment
Attributes
content_type[R]
original_filename[R]
path[R]
Public Class Methods
new(attachment, *rest)
click to toggle source
Calls superclass method
# File lib/surenotify_rails/attachment.rb, line 5 def initialize (attachment, *rest) @path = '' if rest.detect {|opt| opt[:inline] } basename = @original_filename = attachment.cid else basename = @original_filename = attachment.filename end @content_type = attachment.content_type.split(';')[0] super attachment.body.decoded end