Sha256: c684558648befd17dc2fe273866105e6183d04adf0d2ef140c1634f5f90c35fd

Contents?: true

Size: 645 Bytes

Versions: 2

Compression:

Stored size: 645 Bytes

Contents

module Tessera
  module Otrs
    class Article < Base
      attr_accessor :From, :To, :Subject, :Body, :ContentType, :CommunicationChannel,
                    :ArticleSend

      # rubocop:disable Metrics/ParameterLists
      def initialize(from:, to: nil, subject:, body:, communication_channel: 'Email',
                     article_send: 0)
        @From = from
        @To = to
        @Subject = subject
        @Body = body
        @ContentType = 'text/plain; charset=utf8'
        @CommunicationChannel = communication_channel
        @ArticleSend = article_send
      end
      # rubocop:enable Metrics/ParameterLists
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tessera-1.0.1 lib/tessera/otrs/article.rb
tessera-1.0.0 lib/tessera/otrs/article.rb