Class: Zendesk2::TicketChange

Inherits:
AuditEvent show all
Defined in:
lib/zendesk2/ticket_change.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, #type

Methods included from Attributes

#assoc_accessor, #assoc_reader, #assoc_writer

Methods included from Model

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

Instance Method Details

#field_nameString

Returns The name of the field that was changed.

Returns:

  • (String)

    The name of the field that was changed



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

attribute :field_name, type: :string

#idInteger

Returns Automatically assigned when creating events.

Returns:

  • (Integer)

    Automatically assigned when creating events



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

identity :id, type: :integer

#previous_valueArray

Returns The previous value of the field that was changed.

Returns:

  • (Array)

    The previous value of the field that was changed



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

attribute :previous_value, type: :array, parser: ->(v, _) { [*v] }

#valueString

Returns The name of the field that was changed.

Returns:

  • (String)

    The name of the field that was changed



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

attribute :value, type: :string