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



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

attribute :attachments, type: :array

#authorZendesk2::User



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



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

attribute :author_id, type: :integer

#bodyString



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

attribute :body, type: :string

#dataString



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

attribute :data, type: :string

#formatted_fromString



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

attribute :formatted_from, type: :string

#formatted_toString



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

attribute :formatted_to, type: :string

#html_bodyString



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

attribute :html_body, type: :string

#idInteger



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

identity :id, type: :integer

#publicBoolean



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

attribute :public, type: :boolean

#trustedBoolean



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

attribute :trusted, type: :boolean

#typeString



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

attribute :type, type: :string