Class: Zendesk2::TicketCommentPrivacyChange
- Inherits:
-
AuditEvent
- Object
- AuditEvent
- Zendesk2::TicketCommentPrivacyChange
- Defined in:
- lib/zendesk2/ticket_comment_privacy_change.rb
Instance Attribute Summary
Attributes inherited from AuditEvent
Attributes included from Model
Instance Method Summary collapse
-
#comment ⇒ Zendesk2::TicketComment
Ticket comment pertaining to this privacy change.
-
#comment_id ⇒ Integer
The id if the comment that changed privacy.
-
#id ⇒ integer
Automatically assigned when creating events.
-
#public ⇒ Boolean
Tells if the comment was made public or private.
Methods inherited from AuditEvent
Methods included from Attributes
#assoc_accessor, #assoc_reader, #assoc_writer
Methods included from Model
#destroy, #destroyed?, #missing_attributes, #save, #save!, #update!
Instance Method Details
#comment ⇒ Zendesk2::TicketComment
Returns ticket comment pertaining to this privacy change.
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_id ⇒ Integer
Returns The id if the comment that changed privacy.
7 |
# File 'lib/zendesk2/ticket_comment_privacy_change.rb', line 7 attribute :comment_id, type: :integer |
#id ⇒ integer
Returns Automatically assigned when creating events.
4 |
# File 'lib/zendesk2/ticket_comment_privacy_change.rb', line 4 identity :id, type: :integer |
#public ⇒ Boolean
Returns Tells if the comment was made public or private.
9 |
# File 'lib/zendesk2/ticket_comment_privacy_change.rb', line 9 attribute :public, type: :boolean |