Sha256: b1b6ef4a5b197ce8a24989ff52135e3d47563c2195dc0af87cf066a5f8efea68

Contents?: true

Size: 1.42 KB

Versions: 21

Compression:

Stored size: 1.42 KB

Contents

class Zendesk2::Client
  class TicketVoiceComment < 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::Client::User] event author
    def author
      requires :author_id

      self.service.users.get(self.author_id)
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
zendesk2-1.7.5 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.7.4 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.7.2 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.7.1 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.7.0 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.6.1 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.17 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.16 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.15 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.14 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.13 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.12 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.11 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.10 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.9 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.8 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.7 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.6 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.5 lib/zendesk2/client/models/ticket_voice_comment.rb
zendesk2-1.5.4 lib/zendesk2/client/models/ticket_voice_comment.rb