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

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

#channelsArray<Channel>

Returns the channels that are part of the channel group.

Returns:

  • (Array<Channel>)

    the channels that are part of the channel group



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

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:



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

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

#company_idInteger

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

Returns:

  • (Integer)

    the ID of the company the channel group belongs to



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

attribute :company_id

#nameString

Returns the name of the channel group.

Returns:

  • (String)

    the name of the channel group



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

attribute :name

#parentChannel::Group?

Returns the parent group of the channel group.

Returns:



162
163
164
# File 'lib/lws/apps/digital_signage.rb', line 162

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

#parent_idInteger?

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

Returns:

  • (Integer, nil)

    the ID of the parent group of the channel group



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

attribute :parent_id

#slidesArray<Slide>

Returns the slides schedules on the channel group.

Returns:

  • (Array<Slide>)

    the slides schedules on the channel group



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

has_many :slides, class_name: "LWS::DigitalSignage::Slide"

#tagsArray<Channel::Group::Tag>

Returns the tags of the channel group.

Returns:



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

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:



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

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