Class: Tessera::Otrs::Article
Instance Attribute Summary collapse
-
#ArticleSend ⇒ Object
Returns the value of attribute ArticleSend.
-
#Body ⇒ Object
Returns the value of attribute Body.
-
#CommunicationChannel ⇒ Object
Returns the value of attribute CommunicationChannel.
-
#ContentType ⇒ Object
Returns the value of attribute ContentType.
-
#From ⇒ Object
Returns the value of attribute From.
-
#Subject ⇒ Object
Returns the value of attribute Subject.
-
#To ⇒ Object
Returns the value of attribute To.
Instance Method Summary collapse
-
#initialize(from:, to: nil, subject:, body:, communication_channel: 'Email', article_send: 0) ⇒ Article
constructor
rubocop:disable Metrics/ParameterLists.
Methods inherited from Base
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
#ArticleSend ⇒ Object
Returns the value of attribute ArticleSend.
4 5 6 |
# File 'lib/tessera/otrs/article.rb', line 4 def ArticleSend @ArticleSend end |
#Body ⇒ Object
Returns the value of attribute Body.
4 5 6 |
# File 'lib/tessera/otrs/article.rb', line 4 def Body @Body end |
#CommunicationChannel ⇒ Object
Returns the value of attribute CommunicationChannel.
4 5 6 |
# File 'lib/tessera/otrs/article.rb', line 4 def CommunicationChannel @CommunicationChannel end |
#ContentType ⇒ Object
Returns the value of attribute ContentType.
4 5 6 |
# File 'lib/tessera/otrs/article.rb', line 4 def ContentType @ContentType end |
#From ⇒ Object
Returns the value of attribute From.
4 5 6 |
# File 'lib/tessera/otrs/article.rb', line 4 def From @From end |
#Subject ⇒ Object
Returns the value of attribute Subject.
4 5 6 |
# File 'lib/tessera/otrs/article.rb', line 4 def Subject @Subject end |
#To ⇒ Object
Returns the value of attribute To.
4 5 6 |
# File 'lib/tessera/otrs/article.rb', line 4 def To @To end |