Class: Zendesk2::TicketChange
- Inherits:
-
AuditEvent
- Object
- AuditEvent
- Zendesk2::TicketChange
- Defined in:
- lib/zendesk2/ticket_change.rb
Instance Attribute Summary
Attributes inherited from AuditEvent
Attributes included from Model
Instance Method Summary collapse
-
#field_name ⇒ String
The name of the field that was changed.
-
#id ⇒ Integer
Automatically assigned when creating events.
-
#previous_value ⇒ Array
The previous value of the field that was changed.
-
#value ⇒ String
The name of the field that was changed.
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
#field_name ⇒ String
Returns The name of the field that was changed.
7 |
# File 'lib/zendesk2/ticket_change.rb', line 7 attribute :field_name, type: :string |
#id ⇒ Integer
Returns Automatically assigned when creating events.
4 |
# File 'lib/zendesk2/ticket_change.rb', line 4 identity :id, type: :integer |
#previous_value ⇒ Array
Returns 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] } |
#value ⇒ String
Returns The name of the field that was changed.
9 |
# File 'lib/zendesk2/ticket_change.rb', line 9 attribute :value, type: :string |