Class: LWS::Ticket::Ticket
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::Ticket::Ticket
- Defined in:
- lib/lws/apps/ticket.rb
Overview
The ticket class
Instance Attribute Summary collapse
-
#account ⇒ LWS::Auth::Account
The account of the user that created the ticket.
-
#account_id ⇒ Integer
The ID of the account of the user that created the ticket.
-
#assignee ⇒ LWS::Auth::Account?
The account of the user that the ticket is assigned to.
-
#assignee_id ⇒ Integer?
The ID of the account of the user that the ticket is assigned to.
-
#company ⇒ LWS::Auth::Company
The company of the user that created the ticket.
-
#company_id ⇒ Integer
The ID of the company of the user that created the ticket.
-
#description ⇒ String?
The description (body) of the ticket.
-
#display_name ⇒ String
The name of the object the ticket is created for.
-
#due_date ⇒ String?
The timestamp of when the ticket is due.
-
#group ⇒ Group
The group (e.g. department/ticket type) the ticket belongs to.
-
#group_id ⇒ Integer
The ID of the group the ticket belongs to.
-
#messages ⇒ Array<Message>
The messages associated with the ticket.
-
#owner ⇒ LWS::Auth::Company
The company that is currently handling the ticket.
-
#owner_id ⇒ Integer
The ID of the company that is currently handling the ticket.
-
#priority ⇒ "low", ...
The priority of the ticket.
-
#status ⇒ "success", ...
The current ticket status.
-
#tags ⇒ Array<Tag>
The tags associated with the ticket.
-
#target ⇒ String
The target is a string that consists of three parts joined by a dot.
-
#title ⇒ String
The title (short description) of the ticket.
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
#account ⇒ LWS::Auth::Account
Returns the account of the user that created the ticket.
178 |
# File 'lib/lws/apps/ticket.rb', line 178 belongs_to :account, class_name: "LWS::Auth::Account" |
#account_id ⇒ Integer
Returns the ID of the account of the user that created the ticket.
183 |
# File 'lib/lws/apps/ticket.rb', line 183 attribute :account_id |
#assignee ⇒ LWS::Auth::Account?
Returns the account of the user that the ticket is assigned to.
188 189 |
# File 'lib/lws/apps/ticket.rb', line 188 belongs_to :assignee, class_name: "LWS::Auth::Account", uri: "accounts/:id" |
#assignee_id ⇒ Integer?
Returns the ID of the account of the user that the ticket is assigned to.
194 |
# File 'lib/lws/apps/ticket.rb', line 194 attribute :assignee_id |
#company ⇒ LWS::Auth::Company
Returns the company of the user that created the ticket.
199 |
# File 'lib/lws/apps/ticket.rb', line 199 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Integer
Returns the ID of the company of the user that created the ticket.
204 |
# File 'lib/lws/apps/ticket.rb', line 204 attribute :company_id |
#description ⇒ String?
Returns the description (body) of the ticket.
208 |
# File 'lib/lws/apps/ticket.rb', line 208 attribute :description |
#display_name ⇒ String
Returns the name of the object the ticket is created for.
212 |
# File 'lib/lws/apps/ticket.rb', line 212 attribute :display_name |
#due_date ⇒ String?
Returns the timestamp of when the ticket is due.
216 |
# File 'lib/lws/apps/ticket.rb', line 216 attribute :due_date |
#group ⇒ Group
Returns the group (e.g. department/ticket type) the ticket belongs to.
221 |
# File 'lib/lws/apps/ticket.rb', line 221 belongs_to :group |
#group_id ⇒ Integer
Returns the ID of the group the ticket belongs to.
225 |
# File 'lib/lws/apps/ticket.rb', line 225 attribute :group_id |
#messages ⇒ Array<Message>
Returns the messages associated with the ticket.
229 |
# File 'lib/lws/apps/ticket.rb', line 229 has_many :messages |
#owner ⇒ LWS::Auth::Company
Returns the company that is currently handling the ticket.
234 235 |
# File 'lib/lws/apps/ticket.rb', line 234 belongs_to :owner, class_name: "LWS::Auth::Company", uri: "companies/:id" |
#owner_id ⇒ Integer
Returns the ID of the company that is currently handling the ticket.
240 |
# File 'lib/lws/apps/ticket.rb', line 240 attribute :owner_id |
#priority ⇒ "low", ...
Returns the priority of the ticket.
244 |
# File 'lib/lws/apps/ticket.rb', line 244 attribute :priority |
#status ⇒ "success", ...
Returns the current ticket status.
249 |
# File 'lib/lws/apps/ticket.rb', line 249 attribute :status |
#tags ⇒ Array<Tag>
Returns the tags associated with the ticket.
253 |
# File 'lib/lws/apps/ticket.rb', line 253 has_many :tags |
#target ⇒ String
The target is a string that consists of three parts joined by a dot. It is the name of the app, followed by the model name, followed by the model ID. This can be resolved into the object the ticket is created for/on.
262 |
# File 'lib/lws/apps/ticket.rb', line 262 attribute :target |
#title ⇒ String
Returns the title (short description) of the ticket.
266 |
# File 'lib/lws/apps/ticket.rb', line 266 attribute :title |