Class: Zendesk2::TicketAudit
- Inherits:
-
Object
- Object
- Zendesk2::TicketAudit
- Extended by:
- Attributes
- Includes:
- Model
- Defined in:
- lib/zendesk2/ticket_audit.rb
Instance Attribute Summary
Attributes included from Model
Instance Method Summary collapse
-
#author_id ⇒ Integer
The user who created the audit.
-
#created_at ⇒ Time
The time the audit was created.
-
#events ⇒ Array
An array of the events that happened in this audit.
-
#id ⇒ Integer
Automatically assigned when creating audits.
-
#metadata ⇒ Hash
Metadata for the audit, custom and system data.
- #ticket ⇒ Object
-
#ticket_id ⇒ Integer
The ID of the associated ticket.
-
#via ⇒ Hash
This object explains how this audit was created.
Methods included from Attributes
assoc_accessor, assoc_reader, assoc_writer
Methods included from Model
#destroy, #destroyed?, #missing_attributes, #save, #save!, #update!
Instance Method Details
#author_id ⇒ Integer
Returns The user who created the audit.
18 |
# File 'lib/zendesk2/ticket_audit.rb', line 18 attribute :author_id, type: :integer |
#created_at ⇒ Time
Returns The time the audit was created.
16 |
# File 'lib/zendesk2/ticket_audit.rb', line 16 attribute :created_at, type: :time |
#events ⇒ Array
Returns An array of the events that happened in this audit.
20 |
# File 'lib/zendesk2/ticket_audit.rb', line 20 attribute :events, type: :array |
#id ⇒ Integer
Returns Automatically assigned when creating audits.
8 |
# File 'lib/zendesk2/ticket_audit.rb', line 8 identity :id, type: :integer |
#metadata ⇒ Hash
Returns Metadata for the audit, custom and system data.
12 |
# File 'lib/zendesk2/ticket_audit.rb', line 12 attribute :metadata |
#ticket ⇒ Object
22 23 24 25 26 |
# File 'lib/zendesk2/ticket_audit.rb', line 22 def ticket requires :ticket_id cistern.tickets.get(ticket_id) end |
#ticket_id ⇒ Integer
Returns The ID of the associated ticket.
10 |
# File 'lib/zendesk2/ticket_audit.rb', line 10 attribute :ticket_id, type: :integer |
#via ⇒ Hash
Returns This object explains how this audit was created.
14 |
# File 'lib/zendesk2/ticket_audit.rb', line 14 attribute :via |