Class: LWS::Ticket::Ticket

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

Overview

The ticket class

Instance Attribute Summary collapse

Instance Attribute Details

#accountLWS::Auth::Account

Returns the account of the user that created the ticket.

Returns:



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

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

#account_idFixnum

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

Returns:

  • (Fixnum)

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



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

attribute :account_id

#assigneeLWS::Auth::Account?

Returns the account of the user that the ticket is assigned to.

Returns:



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

belongs_to :assignee, class_name: "LWS::Auth::Account",
uri: "accounts/:id"

#assignee_idFixnum?

Returns the ID of the account of the user that the ticket is assigned to.

Returns:

  • (Fixnum, nil)

    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

#companyLWS::Auth::Company

Returns the company of the user that created the ticket.

Returns:



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

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

#company_idFixnum

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

Returns:

  • (Fixnum)

    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_atString (readonly)

Returns the timestamp of when the ticket was created.

Returns:

  • (String)

    the timestamp of when the ticket was created



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

attribute :created_at

#descriptionString?

Returns the description (body) of the ticket.

Returns:

  • (String, nil)

    the description (body) of the ticket



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

attribute :description

#display_nameString

Returns the name of the object the ticket is created for.

Returns:

  • (String)

    the name of the object the ticket is created for



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

attribute :display_name

#due_dateString?

Returns the timestamp of when the ticket is due.

Returns:

  • (String, nil)

    the timestamp of when the ticket is due



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

attribute :due_date

#groupGroup

Returns the group (e.g. department/ticket type) the ticket belongs to.

Returns:

  • (Group)

    the group (e.g. department/ticket type) the ticket belongs to



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

belongs_to :group

#group_idFixnum

Returns the ID of the group the ticket belongs to.

Returns:

  • (Fixnum)

    the ID of the group the ticket belongs to



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

attribute :group_id

#idFixnum (readonly)

Returns the (unique) ID of the ticket.

Returns:

  • (Fixnum)

    the (unique) ID of the ticket



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

attribute :id

#messagesArray<Message>

Returns the messages associated with the ticket.

Returns:

  • (Array<Message>)

    the messages associated with the ticket



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

has_many :messages

#ownerLWS::Auth::Company

Returns the company that is currently handling the ticket.

Returns:



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

belongs_to :owner, class_name: "LWS::Auth::Company",
uri: "companies/:id"

#owner_idFixnum

Returns the ID of the company that is currently handling the ticket.

Returns:

  • (Fixnum)

    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.

Returns:

  • ("low", "medium", "high")

    the priority of the ticket



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

attribute :priority

#status"success", ...

Returns the current ticket status.

Returns:

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

    the current ticket status



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

attribute :status

#tagsArray<Tag>

Returns the tags associated with the ticket.

Returns:

  • (Array<Tag>)

    the tags associated with the ticket



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

has_many :tags

#targetString

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.

Returns:

  • (String)

    the target of the ticket



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

attribute :target

#titleString

Returns the title (short description) of the ticket.

Returns:

  • (String)

    the title (short description) of the ticket



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

attribute :title

#updated_atString (readonly)

Returns the timestamp of when the ticket was last updated.

Returns:

  • (String)

    the timestamp of when the ticket was last updated



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

attribute :updated_at