Sha256: 3b803a7bd388a8cf2e9ec89b2c25a0a806964174c5c5b8189cff2b2d9e887c5b

Contents?: true

Size: 1.36 KB

Versions: 6

Compression:

Stored size: 1.36 KB

Contents

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

  # @return [Array] The attachments on this comment as Attachment objects
  attribute :attachments, type: :array
  # @return [Integer] The id of the author of this comment
  attribute :author_id, type: :integer
  # @return [String] The actual comment made by the author
  attribute :body, type: :string
  # @return [String] A hash of properties about the call
  attribute :data, type: :string
  # @return [String] A formatted version of the phone number which dialed the call
  attribute :formatted_from, type: :string
  # @return [String] A formatted version of the phone number which answered the call
  attribute :formatted_to, type: :string
  # @return [String] The actual comment made by the author formatted to HTML
  attribute :html_body, type: :string
  # @return [Boolean] If this is a public comment or an internal agents only note
  attribute :public, type: :boolean
  # @return [Boolean] If this comment is trusted or marked as being potentially fraudulent
  attribute :trusted, type: :boolean
  # @return [String] Has the value VoiceComment
  attribute :type, type: :string

  # @return [Zendesk2::User] event author
  def author
    requires :author_id

    cistern.users.get(author_id)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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