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
-
#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.
-
#slides ⇒ Array<Slide>
The slides schedules on the channel group.
-
#tags ⇒ Array<Channel::Group::Tag>
The tags 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
#channels ⇒ Array<Channel>
Returns the channels that are part of the channel group.
150 151 |
# File 'lib/lws/apps/digital_signage.rb', line 150 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.
155 |
# File 'lib/lws/apps/digital_signage.rb', line 155 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Integer
Returns the ID of the company the channel group belongs to.
159 |
# File 'lib/lws/apps/digital_signage.rb', line 159 attribute :company_id |
#name ⇒ String
Returns the name of the channel group.
163 |
# File 'lib/lws/apps/digital_signage.rb', line 163 attribute :name |
#parent ⇒ Channel::Group?
Returns the parent group of the channel group.
167 168 169 |
# File 'lib/lws/apps/digital_signage.rb', line 167 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.
173 |
# File 'lib/lws/apps/digital_signage.rb', line 173 attribute :parent_id |
#slides ⇒ Array<Slide>
Returns the slides schedules on the channel group.
177 |
# File 'lib/lws/apps/digital_signage.rb', line 177 has_many :slides, class_name: "LWS::DigitalSignage::Slide" |
#tags ⇒ Array<Channel::Group::Tag>
Returns the tags of the channel group.
181 182 |
# File 'lib/lws/apps/digital_signage.rb', line 181 has_many :tags, class_name: "LWS::DigitalSignage::Channel::Group::Tag", uri: "channel/groups/:group_id/tags(/:id)" |
#time_schedule_overrides ⇒ Array<Channel::TimeScheduleOverride>
Returns the time schedule overrides of the channel group.
186 187 |
# File 'lib/lws/apps/digital_signage.rb', line 186 has_many :time_schedule_overrides, class_name: "LWS::DigitalSignage::Channel::TimeScheduleOverride", uri: "channel/groups/:group_id/time_schedule_overrides(/:id)" |