Sha256: 505020c0d242457346844ae9ceb80bcfb24d21b192da9d1c11c5b1ceff43e67d

Contents?: true

Size: 577 Bytes

Versions: 6

Compression:

Stored size: 577 Bytes

Contents

# frozen_string_literal: true
class Zendesk2::TicketCommentPrivacyChange < AuditEvent
  # @return [integer] Automatically assigned when creating events
  identity :id, type: :integer

  # @return [Integer] The id if the comment that changed privacy
  attribute :comment_id, type: :integer
  # @return [Boolean] Tells if the comment was made public or private
  attribute :public, type: :boolean

  # @return [Zendesk2::TicketComment] ticket comment pertaining to this privacy change
  def comment
    requires :comment_id

    cistern.ticket_comments.get(comment_id)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zendesk2-1.15.0 lib/zendesk2/ticket_comment_privacy_change.rb
zendesk2-1.13.1 lib/zendesk2/ticket_comment_privacy_change.rb
zendesk2-1.13.0 lib/zendesk2/ticket_comment_privacy_change.rb
zendesk2-1.12.0 lib/zendesk2/ticket_comment_privacy_change.rb
zendesk2-1.11.0 lib/zendesk2/ticket_comment_privacy_change.rb
zendesk2-1.10.0 lib/zendesk2/ticket_comment_privacy_change.rb