Class: LWS::Ticket::Message
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::Ticket::Message
- Defined in:
- lib/lws/apps/ticket.rb
Overview
The ticket message class
Instance Attribute Summary collapse
-
#account ⇒ LWS::Auth::Account
The account of the user that created the ticket message.
-
#account_id ⇒ Fixnum
The ID of the account of the user that created the ticket message.
-
#attachments ⇒ Array<Attachment>
The attachments associated with the ticket message.
-
#company ⇒ LWS::Auth::Company
The company of the user that created the ticket message.
-
#company_id ⇒ Fixnum
The ID of the company of the user that created the ticket message.
-
#created_at ⇒ String
readonly
The timestamp of when the ticket message was created.
-
#id ⇒ Fixnum
readonly
The (unique) ID of the ticket message.
-
#internal ⇒ Boolean
Whether the message is internal, i.e.
-
#message ⇒ String
The ticket message body.
-
#status ⇒ "success", ...
The new ticket status set by the message.
-
#ticket ⇒ Ticket
The ticket associated with the message.
-
#ticket_id ⇒ Fixnum
The ID of the ticket associated with the message.
-
#updated_at ⇒ String
readonly
The timestamp of when the ticket message was last updated.
Instance Attribute Details
#account ⇒ LWS::Auth::Account
Returns the account of the user that created the ticket message.
129 |
# File 'lib/lws/apps/ticket.rb', line 129 belongs_to :account, class_name: "LWS::Auth::Account" |
#account_id ⇒ Fixnum
Returns 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 |
#attachments ⇒ Array<Attachment>
Returns the attachments associated with the ticket message.
139 |
# File 'lib/lws/apps/ticket.rb', line 139 has_many :attachments |
#company ⇒ LWS::Auth::Company
Returns the company of the user that created the ticket message.
144 |
# File 'lib/lws/apps/ticket.rb', line 144 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Fixnum
Returns 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_at ⇒ String (readonly)
Returns the timestamp of when the ticket message was created.
176 |
# File 'lib/lws/apps/ticket.rb', line 176 attribute :created_at |
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the ticket message.
124 |
# File 'lib/lws/apps/ticket.rb', line 124 attribute :id |
#internal ⇒ Boolean
Returns whether the message is internal, i.e. not visible for descendant companies.
154 |
# File 'lib/lws/apps/ticket.rb', line 154 attribute :internal |
#message ⇒ String
Returns 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.
164 |
# File 'lib/lws/apps/ticket.rb', line 164 attribute :status |
#ticket ⇒ Ticket
Returns the ticket associated with the message.
168 |
# File 'lib/lws/apps/ticket.rb', line 168 belongs_to :ticket |
#ticket_id ⇒ Fixnum
Returns the ID of the ticket associated with the message.
172 |
# File 'lib/lws/apps/ticket.rb', line 172 attribute :ticket_id |
#updated_at ⇒ String (readonly)
Returns the timestamp of when the ticket message was last updated.
181 |
# File 'lib/lws/apps/ticket.rb', line 181 attribute :updated_at |