class Tessera::Otrs::Attachment

Attributes

Content[RW]
ContentType[RW]
Filename[RW]

Public Class Methods

new(tempfile:) click to toggle source
# File lib/tessera/otrs/attachment.rb, line 6
def initialize(tempfile:)
  tempfile.rewind
  @Content = Base64.encode64(tempfile.read)
  @ContentType = tempfile.content_type
  @Filename = tempfile.original_filename
end