Class: LWS::Ticket::Message

Inherits:
Generic::Model show all
Defined in:
lib/lws/apps/ticket.rb

Overview

The ticket message class

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#accountLWS::Auth::Account

Returns the account of the user that created the ticket message.

Returns:



98
# File 'lib/lws/apps/ticket.rb', line 98

belongs_to :account, class_name: "LWS::Auth::Account"

#account_idInteger

Returns the ID of the account of the user that created the ticket message.

Returns:

  • (Integer)

    the ID of the account of the user that created the ticket message



103
# File 'lib/lws/apps/ticket.rb', line 103

attribute :account_id

#attachmentsArray<Attachment>

Returns the attachments associated with the ticket message.

Returns:

  • (Array<Attachment>)

    the attachments associated with the ticket message



108
# File 'lib/lws/apps/ticket.rb', line 108

has_many :attachments

#companyLWS::Auth::Company

Returns the company of the user that created the ticket message.

Returns:



113
# File 'lib/lws/apps/ticket.rb', line 113

belongs_to :company, class_name: "LWS::Auth::Company"

#company_idInteger

Returns the ID of the company of the user that created the ticket message.

Returns:

  • (Integer)

    the ID of the company of the user that created the ticket message



118
# File 'lib/lws/apps/ticket.rb', line 118

attribute :company_id

#internalBoolean

Returns whether the message is internal, i.e. not visible for descendant companies.

Returns:

  • (Boolean)

    whether the message is internal, i.e. not visible for descendant companies



123
# File 'lib/lws/apps/ticket.rb', line 123

attribute :internal

#messageString

Returns the ticket message body.

Returns:

  • (String)

    the ticket message body



127
# File 'lib/lws/apps/ticket.rb', line 127

attribute :message

#status"success", ...

Returns the new ticket status set by the message.

Returns:

  • ("success", "open", "closed", "in_progress", 'solved"feedback"ck", "priority", "reassign")

    the new ticket status set by the message



133
# File 'lib/lws/apps/ticket.rb', line 133

attribute :status

#ticketTicket

Returns the ticket associated with the message.

Returns:

  • (Ticket)

    the ticket associated with the message



137
# File 'lib/lws/apps/ticket.rb', line 137

belongs_to :ticket

#ticket_idInteger

Returns the ID of the ticket associated with the message.

Returns:

  • (Integer)

    the ID of the ticket associated with the message



141
# File 'lib/lws/apps/ticket.rb', line 141

attribute :ticket_id