Class: Zendesk2::TicketVoiceComment

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

Methods included from Attributes

#assoc_accessor, #assoc_reader, #assoc_writer

Methods included from Model

#destroy, #destroyed?, #missing_attributes, #save, #save!, #update!

Instance Method Details

#attachmentsArray

Returns The attachments on this comment as Attachment objects.

Returns:

  • (Array)

    The attachments on this comment as Attachment objects



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

attribute :attachments, type: :array

#authorZendesk2::User

Returns event author.

Returns:



28
29
30
31
32
# File 'lib/zendesk2/ticket_voice_comment.rb', line 28

def author
  requires :author_id

  cistern.users.get(author_id)
end

#author_idInteger

Returns The id of the author of this comment.

Returns:

  • (Integer)

    The id of the author of this comment



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

attribute :author_id, type: :integer

#bodyString

Returns The actual comment made by the author.

Returns:

  • (String)

    The actual comment made by the author



11
# File 'lib/zendesk2/ticket_voice_comment.rb', line 11

attribute :body, type: :string

#dataString

Returns A hash of properties about the call.

Returns:

  • (String)

    A hash of properties about the call



13
# File 'lib/zendesk2/ticket_voice_comment.rb', line 13

attribute :data, type: :string

#formatted_fromString

Returns A formatted version of the phone number which dialed the call.

Returns:

  • (String)

    A formatted version of the phone number which dialed the call



15
# File 'lib/zendesk2/ticket_voice_comment.rb', line 15

attribute :formatted_from, type: :string

#formatted_toString

Returns A formatted version of the phone number which answered the call.

Returns:

  • (String)

    A formatted version of the phone number which answered the call



17
# File 'lib/zendesk2/ticket_voice_comment.rb', line 17

attribute :formatted_to, type: :string

#html_bodyString

Returns The actual comment made by the author formatted to HTML.

Returns:

  • (String)

    The actual comment made by the author formatted to HTML



19
# File 'lib/zendesk2/ticket_voice_comment.rb', line 19

attribute :html_body, type: :string

#idInteger

Returns Automatically assigned when creating events.

Returns:

  • (Integer)

    Automatically assigned when creating events



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

identity :id, type: :integer

#publicBoolean

Returns If this is a public comment or an internal agents only note.

Returns:

  • (Boolean)

    If this is a public comment or an internal agents only note



21
# File 'lib/zendesk2/ticket_voice_comment.rb', line 21

attribute :public, type: :boolean

#trustedBoolean

Returns If this comment is trusted or marked as being potentially fraudulent.

Returns:

  • (Boolean)

    If this comment is trusted or marked as being potentially fraudulent



23
# File 'lib/zendesk2/ticket_voice_comment.rb', line 23

attribute :trusted, type: :boolean

#typeString

Returns Has the value VoiceComment.

Returns:

  • (String)

    Has the value VoiceComment



25
# File 'lib/zendesk2/ticket_voice_comment.rb', line 25

attribute :type, type: :string