Sha256: 9a3a290f7a79550e130b824aaadfb842ace6e9c591cb98ff6e850fdcae596f35

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

module Tessera
  module Otrs
    class Attachment < Base
      attr_accessor :Content, :ContentType, :Filename

      def initialize(tempfile:)
        tempfile.rewind
        @Content = Base64.encode64(tempfile.read)
        @ContentType = tempfile.content_type
        @Filename = tempfile.original_filename
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tessera-1.0.1 lib/tessera/otrs/attachment.rb