Class: LWS::Ticket::Group

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

Overview

The ticket group class

Instance Attribute Summary collapse

Instance Attribute Details

#created_atString (readonly)

Returns the timestamp of when the ticket group was created.

Returns:

  • (String)

    the timestamp of when the ticket group was created



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

attribute :created_at

#idFixnum (readonly)

Returns the (unique) ID of the ticket group.

Returns:

  • (Fixnum)

    the (unique) ID of the ticket group



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

attribute :id

#nameString

Returns the name of the ticket group.

Returns:

  • (String)

    the name of the ticket group



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

attribute :name

#slugString (readonly)

Returns the slug of the ticket group.

Returns:

  • (String)

    the slug of the ticket group



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

attribute :slug

#ticketsArray<Ticket>

Returns the tickets that are assigned to the ticket group.

Returns:

  • (Array<Ticket>)

    the tickets that are assigned to the ticket group



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

has_many :tickets

#updated_atString (readonly)

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

Returns:

  • (String)

    the timestamp of when the ticket group was last updated



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

attribute :updated_at