Class: Zendesk2::TicketVoiceComment
- Inherits:
-
AuditEvent
- Object
- AuditEvent
- Zendesk2::TicketVoiceComment
- Defined in:
- lib/zendesk2/ticket_voice_comment.rb
Instance Attribute Summary
Attributes inherited from AuditEvent
Attributes included from Model
Instance Method Summary collapse
-
#attachments ⇒ Array
The attachments on this comment as Attachment objects.
-
#author ⇒ Zendesk2::User
Event author.
-
#author_id ⇒ Integer
The id of the author of this comment.
-
#body ⇒ String
The actual comment made by the author.
-
#data ⇒ String
A hash of properties about the call.
-
#formatted_from ⇒ String
A formatted version of the phone number which dialed the call.
-
#formatted_to ⇒ String
A formatted version of the phone number which answered the call.
-
#html_body ⇒ String
The actual comment made by the author formatted to HTML.
-
#id ⇒ Integer
Automatically assigned when creating events.
-
#public ⇒ Boolean
If this is a public comment or an internal agents only note.
-
#trusted ⇒ Boolean
If this comment is trusted or marked as being potentially fraudulent.
-
#type ⇒ String
Has the value VoiceComment.
Methods inherited from AuditEvent
Methods included from Attributes
#assoc_accessor, #assoc_reader, #assoc_writer
Methods included from Model
#destroy, #destroyed?, #missing_attributes, #save, #save!, #update!
Instance Method Details
#attachments ⇒ Array
Returns The attachments on this comment as Attachment objects.
7 |
# File 'lib/zendesk2/ticket_voice_comment.rb', line 7 attribute :attachments, type: :array |
#author ⇒ Zendesk2::User
Returns event author.
28 29 30 31 32 |
# File 'lib/zendesk2/ticket_voice_comment.rb', line 28 def requires :author_id cistern.users.get() end |
#author_id ⇒ Integer
Returns The id of the author of this comment.
9 |
# File 'lib/zendesk2/ticket_voice_comment.rb', line 9 attribute :author_id, type: :integer |
#body ⇒ String
Returns The actual comment made by the author.
11 |
# File 'lib/zendesk2/ticket_voice_comment.rb', line 11 attribute :body, type: :string |
#data ⇒ String
Returns A hash of properties about the call.
13 |
# File 'lib/zendesk2/ticket_voice_comment.rb', line 13 attribute :data, type: :string |
#formatted_from ⇒ String
Returns 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_to ⇒ String
Returns 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_body ⇒ String
Returns 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 |
#id ⇒ Integer
Returns Automatically assigned when creating events.
4 |
# File 'lib/zendesk2/ticket_voice_comment.rb', line 4 identity :id, type: :integer |
#public ⇒ Boolean
Returns 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 |
#trusted ⇒ Boolean
Returns 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 |
#type ⇒ String
Returns Has the value VoiceComment.
25 |
# File 'lib/zendesk2/ticket_voice_comment.rb', line 25 attribute :type, type: :string |