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 ⇒ Fixnum
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 ⇒ Fixnum?
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 ⇒ Fixnum
The ID of the company of the user that created the ticket.
-
#created_at ⇒ String
readonly
The timestamp of when the ticket was created.
-
#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 ⇒ Fixnum
The ID of the group the ticket belongs to.
-
#id ⇒ Fixnum
readonly
The (unique) ID of the ticket.
-
#messages ⇒ Array<Message>
The messages associated with the ticket.
-
#owner ⇒ LWS::Auth::Company
The company that is currently handling the ticket.
-
#owner_id ⇒ Fixnum
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.
-
#updated_at ⇒ String
readonly
The timestamp of when the ticket was last updated.
Instance Attribute Details
#account ⇒ LWS::Auth::Account
Returns the account of the user that created the ticket.
233 |
# File 'lib/lws/apps/ticket.rb', line 233 belongs_to :account, class_name: "LWS::Auth::Account" |
#account_id ⇒ Fixnum
Returns the ID of the account of the user that created the ticket.
238 |
# File 'lib/lws/apps/ticket.rb', line 238 attribute :account_id |
#assignee ⇒ LWS::Auth::Account?
Returns the account of the user that the ticket is assigned to.
243 244 |
# File 'lib/lws/apps/ticket.rb', line 243 belongs_to :assignee, class_name: "LWS::Auth::Account", uri: "accounts/:id" |
#assignee_id ⇒ Fixnum?
Returns the ID of the account of the user that the ticket is assigned to.
249 |
# File 'lib/lws/apps/ticket.rb', line 249 attribute :assignee_id |
#company ⇒ LWS::Auth::Company
Returns the company of the user that created the ticket.
254 |
# File 'lib/lws/apps/ticket.rb', line 254 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Fixnum
Returns the ID of the company of the user that created the ticket.
259 |
# File 'lib/lws/apps/ticket.rb', line 259 attribute :company_id |
#created_at ⇒ String (readonly)
Returns the timestamp of when the ticket was created.
325 |
# File 'lib/lws/apps/ticket.rb', line 325 attribute :created_at |
#description ⇒ String?
Returns the description (body) of the ticket.
263 |
# File 'lib/lws/apps/ticket.rb', line 263 attribute :description |
#display_name ⇒ String
Returns the name of the object the ticket is created for.
267 |
# File 'lib/lws/apps/ticket.rb', line 267 attribute :display_name |
#due_date ⇒ String?
Returns the timestamp of when the ticket is due.
271 |
# File 'lib/lws/apps/ticket.rb', line 271 attribute :due_date |
#group ⇒ Group
Returns the group (e.g. department/ticket type) the ticket belongs to.
276 |
# File 'lib/lws/apps/ticket.rb', line 276 belongs_to :group |
#group_id ⇒ Fixnum
Returns the ID of the group the ticket belongs to.
280 |
# File 'lib/lws/apps/ticket.rb', line 280 attribute :group_id |
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the ticket.
228 |
# File 'lib/lws/apps/ticket.rb', line 228 attribute :id |
#messages ⇒ Array<Message>
Returns the messages associated with the ticket.
284 |
# File 'lib/lws/apps/ticket.rb', line 284 has_many :messages |
#owner ⇒ LWS::Auth::Company
Returns the company that is currently handling the ticket.
289 290 |
# File 'lib/lws/apps/ticket.rb', line 289 belongs_to :owner, class_name: "LWS::Auth::Company", uri: "companies/:id" |
#owner_id ⇒ Fixnum
Returns the ID of the company that is currently handling the ticket.
295 |
# File 'lib/lws/apps/ticket.rb', line 295 attribute :owner_id |
#priority ⇒ "low", ...
Returns the priority of the ticket.
299 |
# File 'lib/lws/apps/ticket.rb', line 299 attribute :priority |
#status ⇒ "success", ...
Returns the current ticket status.
304 |
# File 'lib/lws/apps/ticket.rb', line 304 attribute :status |
#tags ⇒ Array<Tag>
Returns the tags associated with the ticket.
308 |
# File 'lib/lws/apps/ticket.rb', line 308 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.
317 |
# File 'lib/lws/apps/ticket.rb', line 317 attribute :target |
#title ⇒ String
Returns the title (short description) of the ticket.
321 |
# File 'lib/lws/apps/ticket.rb', line 321 attribute :title |
#updated_at ⇒ String (readonly)
Returns the timestamp of when the ticket was last updated.
329 |
# File 'lib/lws/apps/ticket.rb', line 329 attribute :updated_at |