Class: Tessera::Otrs::Article

Inherits:
Base
  • Object
show all
Defined in:
lib/tessera/otrs/article.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_hash

Constructor Details

#initialize(from:, to: nil, subject:, body:, communication_channel: 'Email', article_send: 0) ⇒ Article

rubocop:disable Metrics/ParameterLists



8
9
10
11
12
13
14
15
16
17
# File 'lib/tessera/otrs/article.rb', line 8

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

Instance Attribute Details

#ArticleSendObject

Returns the value of attribute ArticleSend.



4
5
6
# File 'lib/tessera/otrs/article.rb', line 4

def ArticleSend
  @ArticleSend
end

#BodyObject

Returns the value of attribute Body.



4
5
6
# File 'lib/tessera/otrs/article.rb', line 4

def Body
  @Body
end

#CommunicationChannelObject

Returns the value of attribute CommunicationChannel.



4
5
6
# File 'lib/tessera/otrs/article.rb', line 4

def CommunicationChannel
  @CommunicationChannel
end

#ContentTypeObject

Returns the value of attribute ContentType.



4
5
6
# File 'lib/tessera/otrs/article.rb', line 4

def ContentType
  @ContentType
end

#FromObject

Returns the value of attribute From.



4
5
6
# File 'lib/tessera/otrs/article.rb', line 4

def From
  @From
end

#SubjectObject

Returns the value of attribute Subject.



4
5
6
# File 'lib/tessera/otrs/article.rb', line 4

def Subject
  @Subject
end

#ToObject

Returns the value of attribute To.



4
5
6
# File 'lib/tessera/otrs/article.rb', line 4

def To
  @To
end