Class: Zendesk2::TicketNotification

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

#bodyString

Returns The message sent to the recipients.

Returns:

  • (String)

    The message sent to the recipients



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

attribute :body, type: :string

#idInteger

Returns Automatically assigned when creating events.

Returns:

  • (Integer)

    Automatically assigned when creating events



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

identity :id, type: :integer

#recipientsArray

Returns A array of simple object holding the ids and names of the recipients of this notification.

Returns:

  • (Array)

    A array of simple object holding the ids and names of the recipients of this notification



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

attribute :recipients, type: :array

#subjectString

Returns The subject of the message sent to the recipients.

Returns:

  • (String)

    The subject of the message sent to the recipients



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

attribute :subject, type: :string

#viaHash

Returns A reference to the trigger that created this notification.

Returns:

  • (Hash)

    A reference to the trigger that created this notification



13
# File 'lib/zendesk2/ticket_notification.rb', line 13

attribute :via