Class: LWS::DigitalSignage::Channel::Group
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::DigitalSignage::Channel::Group
- Defined in:
- lib/lws/apps/digital_signage.rb
Overview
The channel group class
Defined Under Namespace
Classes: Tag
Instance Attribute Summary collapse
-
#channel_ids ⇒ Array<Integer>
The IDs of the channels that are part of the channel group.
-
#channels ⇒ Array<Channel>
The channels that are part of the channel group.
-
#company ⇒ LWS::Auth::Company
The company the channel group belongs to.
-
#company_id ⇒ Integer
The ID of the company the channel group belongs to.
-
#name ⇒ String
The name of the channel group.
-
#parent ⇒ Channel::Group?
The parent group of the channel group.
-
#parent_id ⇒ Integer?
The ID of the parent group of the channel group.
-
#slide_ids ⇒ Array<Integer>
The IDs of the slides schedules on the channel group.
-
#slides ⇒ Array<Slide>
The slides schedules on the channel group.
-
#tag_ids ⇒ Array<Integer>
The IDs of the tags of the channel group.
-
#tags ⇒ Array<Channel::Group::Tag>
The tags of the channel group.
-
#time_schedule_override_ids ⇒ Array<Integer>
The IDs of the time schedule overrides of the channel group.
-
#time_schedule_overrides ⇒ Array<Channel::TimeScheduleOverride>
The time schedule overrides of the channel group.
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_ids ⇒ Array<Integer>
Returns 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 |
#channels ⇒ Array<Channel>
Returns 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)" |
#company ⇒ LWS::Auth::Company
Returns the company the channel group belongs to.
181 |
# File 'lib/lws/apps/digital_signage.rb', line 181 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Integer
Returns the ID of the company the channel group belongs to.
185 |
# File 'lib/lws/apps/digital_signage.rb', line 185 attribute :company_id |
#name ⇒ String
Returns the name of the channel group.
189 |
# File 'lib/lws/apps/digital_signage.rb', line 189 attribute :name |
#parent ⇒ Channel::Group?
Returns the parent group of the channel group.
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_id ⇒ Integer?
Returns the ID of the parent group of the channel group.
199 |
# File 'lib/lws/apps/digital_signage.rb', line 199 attribute :parent_id |
#slide_ids ⇒ Array<Integer>
Returns the IDs of the slides schedules on the channel group.
204 |
# File 'lib/lws/apps/digital_signage.rb', line 204 attribute :slide_ids |
#slides ⇒ Array<Slide>
Returns 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_ids ⇒ Array<Integer>
Returns the IDs of the tags of the channel group.
212 |
# File 'lib/lws/apps/digital_signage.rb', line 212 attribute :tag_ids |
#tags ⇒ Array<Channel::Group::Tag>
Returns the tags of the channel group.
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_ids ⇒ Array<Integer>
Returns 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_overrides ⇒ Array<Channel::TimeScheduleOverride>
Returns the time schedule overrides of the channel group.
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)" |