Sha256: e06a82e1a4dd451ab144f6a2f782b25159379cb0ad6577be3d822af6c2db81fb

Contents?: true

Size: 690 Bytes

Versions: 5

Compression:

Stored size: 690 Bytes

Contents

module Chimpster
  module SharedMessageExtensions
  
    def tag
      self['TAG']
    end

    def tag=(value)
      self['TAG'] = value
    end
  
#    def postmark_attachments=(value)
#      @_attachments = value.is_a?(Array) ? value : [value]
#    end
#
#    def postmark_attachments
#      return if @_attachments.nil?
#
#      @_attachments.collect do |item|
#        if item.is_a?(Hash)
#          item
#        elsif item.is_a?(File)
#          {
#            "Name"        => item.path.split("/")[-1],
#            "Content"     => [ IO.read(item.path) ].pack("m"),
#            "ContentType" => "application/octet-stream"
#          }
#        end
#      end
#    end
  
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chimpster-0.1.21 lib/chimpster/message_extensions/shared.rb
chimpster-0.1.20 lib/chimpster/message_extensions/shared.rb
chimpster-0.1.19 lib/chimpster/message_extensions/shared.rb
chimpster-0.1.18 lib/chimpster/message_extensions/shared.rb
chimpster-0.1.17 lib/chimpster/message_extensions/shared.rb