Class: Zendesk2::TicketComment

Inherits:
AuditEvent show all
Defined in:
lib/zendesk2/ticket_comment.rb

Instance Attribute Summary

Attributes inherited from AuditEvent

#ticket_audit

Attributes included from Model

#errors

Instance Method Summary collapse

Methods inherited from AuditEvent

all, for, inherited, #type

Methods included from Attributes

#assoc_accessor, #assoc_reader, #assoc_writer

Methods included from Model

#destroy, #destroyed?, #missing_attributes, #save, #save!, #update!

Instance Method Details

#attachmentsArray

Returns The attachments on this comment as Attachment objects.

Returns:

  • (Array)

    The attachments on this comment as Attachment objects



17
# File 'lib/zendesk2/ticket_comment.rb', line 17

attribute :attachments, type: :array

#authorZendesk2::User

Returns event author.

Returns:



20
21
22
23
24
# File 'lib/zendesk2/ticket_comment.rb', line 20

def author
  requires :author_id

  cistern.users.get(author_id)
end

#author_idInteger

Returns The id of the author of this comment.

Returns:

  • (Integer)

    The id of the author of this comment



15
# File 'lib/zendesk2/ticket_comment.rb', line 15

attribute :author_id, type: :integer

#bodyString

Returns The actual comment made by the author.

Returns:

  • (String)

    The actual comment made by the author



7
# File 'lib/zendesk2/ticket_comment.rb', line 7

attribute :body, type: :string

#html_bodyString

Returns The actual comment made by the author formatted to HTML.

Returns:

  • (String)

    The actual comment made by the author formatted to HTML



9
# File 'lib/zendesk2/ticket_comment.rb', line 9

attribute :html_body, type: :string

#idInteger

Returns Automatically assigned when creating events.

Returns:

  • (Integer)

    Automatically assigned when creating events



4
# File 'lib/zendesk2/ticket_comment.rb', line 4

identity :id, type: :integer

#publicBoolean

Returns If this is a public comment or an internal agents only note.

Returns:

  • (Boolean)

    If this is a public comment or an internal agents only note



11
# File 'lib/zendesk2/ticket_comment.rb', line 11

attribute :public, type: :boolea

#trustedBoolean

Returns If this comment is trusted or marked as being potentially fraudulent.

Returns:

  • (Boolean)

    If this comment is trusted or marked as being potentially fraudulent



13
# File 'lib/zendesk2/ticket_comment.rb', line 13

attribute :trusted, type: :boolean