Sha256: 37fd6db9cde23849871fd5acc4336c97ed70bde3679f741b672f480d7c19c72f
Contents?: true
Size: 237 Bytes
Versions: 3
Compression:
Stored size: 237 Bytes
Contents
module Mail class Part def to_postmark {}.tap do |hash| hash['Content'] = attachment? ? [read].pack('m') : body.to_s hash['ContentType'] = mime_type hash['Name'] = filename end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple_postmark-0.7.0 | lib/simple_postmark/mail_ext/part.rb |
simple_postmark-0.6.0 | lib/simple_postmark/mail_ext/part.rb |
simple_postmark-0.5.2 | lib/simple_postmark/mail_ext/part.rb |