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

#channel_idsArray<Integer>

Returns the IDs of the channels that are part of the channel group.

Returns:

  • (Array<Integer>)

    the IDs of the channels that are part of the channel group



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

attribute :channel_ids

#channelsArray<Channel>

Returns the channels that are part of the channel group.

Returns:

  • (Array<Channel>)

    the channels that are part of the channel group



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

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:



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

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



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

attribute :company_id

#nameString

Returns the name of the channel group.

Returns:

  • (String)

    the name of the channel group



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

attribute :name

#parentChannel::Group?

Returns the parent group of the channel group.

Returns:



193
194
195
# File 'lib/lws/apps/digital_signage.rb', line 193

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



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

attribute :parent_id

#slide_idsArray<Integer>

Returns the IDs of the slides schedules on the channel group.

Returns:

  • (Array<Integer>)

    the IDs of the slides schedules on the channel group



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

attribute :slide_ids

#slidesArray<Slide>

Returns the slides schedules on the channel group.

Returns:

  • (Array<Slide>)

    the slides schedules on the channel group



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

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

#tag_idsArray<Integer>

Returns the IDs of the tags of the channel group.

Returns:

  • (Array<Integer>)

    the IDs of the tags of the channel group



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

attribute :tag_ids

#tagsArray<Channel::Group::Tag>

Returns the tags of the channel group.

Returns:



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

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

#time_schedule_override_idsArray<Integer>

Returns the IDs of the time schedule overrides of the channel group.

Returns:

  • (Array<Integer>)

    the IDs of the time schedule overrides of the channel group



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

attribute :time_schedule_override_ids

#time_schedule_overridesArray<Channel::TimeScheduleOverride>

Returns the time schedule overrides of the channel group.

Returns:



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

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