Class: LWS::DigitalSignage::Channel::Group

Inherits:
Generic::Model
  • Object
show all
Defined in:
lib/lws/apps/digital_signage.rb

Overview

The channel group class

Defined Under Namespace

Classes: Tag

Instance Attribute Summary collapse

Instance Attribute Details

#channelsArray<Channel>

Returns the channels that are part of the channel group.

Returns:

  • (Array<Channel>)

    the channels that are part of the channel group



148
149
# File 'lib/lws/apps/digital_signage.rb', line 148

has_many :channels, class_name: "LWS::DigitalSignage::Channel",
uri: "channel/groups/:group_id/channels/(:id)"

#companyLWS::Auth::Company

Returns the company the channel group belongs to.

Returns:



153
# File 'lib/lws/apps/digital_signage.rb', line 153

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

#company_idFixnum

Returns the ID of the company the channel group belongs to.

Returns:

  • (Fixnum)

    the ID of the company the channel group belongs to



157
# File 'lib/lws/apps/digital_signage.rb', line 157

attribute :company_id

#created_atString (readonly)

Returns the timestamp of when the channel group was created.

Returns:

  • (String)

    the timestamp of when the channel group was created



185
# File 'lib/lws/apps/digital_signage.rb', line 185

attribute :created_at

#idFixnum (readonly)

Returns the (unique) ID of the channel group.

Returns:

  • (Fixnum)

    the (unique) ID of the channel group



144
# File 'lib/lws/apps/digital_signage.rb', line 144

attribute :id

#nameString

Returns the name of the channel group.

Returns:

  • (String)

    the name of the channel group



161
# File 'lib/lws/apps/digital_signage.rb', line 161

attribute :name

#parentChannel::Group?

Returns the parent group of the channel group.

Returns:



165
166
167
# File 'lib/lws/apps/digital_signage.rb', line 165

belongs_to :parent, class_name: "LWS::DigitalSignage::Channel::Group",
foreign_key: "parent_id",
uri: "channel/groups/:id"

#parent_idFixnum?

Returns the ID of the parent group of the channel group.

Returns:

  • (Fixnum, nil)

    the ID of the parent group of the channel group



171
# File 'lib/lws/apps/digital_signage.rb', line 171

attribute :parent_id

#tagsArray<Channel::Group::Tag>

Returns the tags of the channel group.

Returns:



175
176
# File 'lib/lws/apps/digital_signage.rb', line 175

has_many :tags, class_name: "LWS::DigitalSignage::Channel::Group::Tag",
uri: "channel/groups/:group_id/tags/(:id)"

#time_schedule_overridesArray<Channel::TimeScheduleOverride>

Returns the time schedule overrides of the channel group.

Returns:



180
181
# File 'lib/lws/apps/digital_signage.rb', line 180

has_many :time_schedule_overrides, class_name: "LWS::DigitalSignage::Channel::TimeScheduleOverride",
uri: "channel/groups/:group_id/time_schedule_overrides/(:id)"

#updated_atString (readonly)

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

Returns:

  • (String)

    the timestamp of when the channel group was last updated



189
# File 'lib/lws/apps/digital_signage.rb', line 189

attribute :updated_at