Class: Zendesk2::TicketCommentPrivacyChange

Inherits:
AuditEvent
  • Object
show all
Defined in:
lib/zendesk2/ticket_comment_privacy_change.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

#commentZendesk2::TicketComment

Returns ticket comment pertaining to this privacy change.

Returns:



12
13
14
15
16
# File 'lib/zendesk2/ticket_comment_privacy_change.rb', line 12

def comment
  requires :comment_id

  cistern.ticket_comments.get(comment_id)
end

#comment_idInteger

Returns The id if the comment that changed privacy.

Returns:

  • (Integer)

    The id if the comment that changed privacy



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

attribute :comment_id, type: :integer

#idinteger

Returns Automatically assigned when creating events.

Returns:

  • (integer)

    Automatically assigned when creating events



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

identity :id, type: :integer

#publicBoolean

Returns Tells if the comment was made public or private.

Returns:

  • (Boolean)

    Tells if the comment was made public or private



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

attribute :public, type: :boolean