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

Instance Attribute Details

#accountLWS::Auth::Account

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

Returns:



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

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

#account_idFixnum

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

Returns:

  • (Fixnum)

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



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

attribute :account_id

#attachmentsArray<Attachment>

Returns the attachments associated with the ticket message.

Returns:

  • (Array<Attachment>)

    the attachments associated with the ticket message



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

has_many :attachments

#companyLWS::Auth::Company

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

Returns:



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

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

#company_idFixnum

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

Returns:

  • (Fixnum)

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



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

attribute :company_id

#created_atString (readonly)

Returns the timestamp of when the ticket message was created.

Returns:

  • (String)

    the timestamp of when the ticket message was created



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

attribute :created_at

#idFixnum (readonly)

Returns the (unique) ID of the ticket message.

Returns:

  • (Fixnum)

    the (unique) ID of the ticket message



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

attribute :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



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

attribute :internal

#messageString

Returns the ticket message body.

Returns:

  • (String)

    the ticket message body



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

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



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

attribute :status

#ticketTicket

Returns the ticket associated with the message.

Returns:

  • (Ticket)

    the ticket associated with the message



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

belongs_to :ticket

#ticket_idFixnum

Returns the ID of the ticket associated with the message.

Returns:

  • (Fixnum)

    the ID of the ticket associated with the message



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

attribute :ticket_id

#updated_atString (readonly)

Returns the timestamp of when the ticket message was last updated.

Returns:

  • (String)

    the timestamp of when the ticket message was last updated



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

attribute :updated_at