Class: Zendesk2::TicketAudit

Inherits:
Object
  • Object
show all
Extended by:
Attributes
Includes:
Model
Defined in:
lib/zendesk2/ticket_audit.rb

Instance Attribute Summary

Attributes included from Model

#errors

Instance Method Summary collapse

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_idInteger

Returns The user who created the audit.

Returns:

  • (Integer)

    The user who created the audit



18
# File 'lib/zendesk2/ticket_audit.rb', line 18

attribute :author_id, type: :integer

#created_atTime

Returns The time the audit was created.

Returns:

  • (Time)

    The time the audit was created



16
# File 'lib/zendesk2/ticket_audit.rb', line 16

attribute :created_at, type: :time

#eventsArray

Returns An array of the events that happened in this audit.

Returns:

  • (Array)

    An array of the events that happened in this audit



20
# File 'lib/zendesk2/ticket_audit.rb', line 20

attribute :events, type: :array

#idInteger

Returns Automatically assigned when creating audits.

Returns:

  • (Integer)

    Automatically assigned when creating audits



8
# File 'lib/zendesk2/ticket_audit.rb', line 8

identity :id, type: :integer

#metadataHash

Returns Metadata for the audit, custom and system data.

Returns:

  • (Hash)

    Metadata for the audit, custom and system data



12
# File 'lib/zendesk2/ticket_audit.rb', line 12

attribute :metadata

#ticketObject



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_idInteger

Returns The ID of the associated ticket.

Returns:

  • (Integer)

    The ID of the associated ticket



10
# File 'lib/zendesk2/ticket_audit.rb', line 10

attribute :ticket_id, type: :integer

#viaHash

Returns This object explains how this audit was created.

Returns:

  • (Hash)

    This object explains how this audit was created



14
# File 'lib/zendesk2/ticket_audit.rb', line 14

attribute :via