Class: Zendesk2::TicketCreate

Inherits:
AuditEvent show all
Defined in:
lib/zendesk2/ticket_create.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 set.

Returns:

  • (string)

    The name of the field that was set



7
# File 'lib/zendesk2/ticket_create.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_create.rb', line 4

identity :id, type: :integer

#valueArray

Returns The value of the field that was set.

Returns:

  • (Array)

    The value of the field that was set



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

attribute :value, parser: ->(v, _) { [*v] }