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 ⇒ Fixnum
The ID of the company the channel group belongs to.
-
#created_at ⇒ String
readonly
The timestamp of when the channel group was created.
-
#id ⇒ Fixnum
readonly
The (unique) ID of the channel group.
-
#name ⇒ String
The name of the channel group.
-
#parent ⇒ Channel::Group?
The parent group of the channel group.
-
#parent_id ⇒ Fixnum?
The ID of the parent group of 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.
-
#updated_at ⇒ String
readonly
The timestamp of when the channel group was last updated.
Instance Attribute Details
#channels ⇒ Array<Channel>
Returns the channels that are part of the channel group.
127 128 |
# File 'lib/lws/apps/digital_signage.rb', line 127 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.
132 |
# File 'lib/lws/apps/digital_signage.rb', line 132 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Fixnum
Returns the ID of the company the channel group belongs to.
136 |
# File 'lib/lws/apps/digital_signage.rb', line 136 attribute :company_id |
#created_at ⇒ String (readonly)
Returns the timestamp of when the channel group was created.
164 |
# File 'lib/lws/apps/digital_signage.rb', line 164 attribute :created_at |
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the channel group.
123 |
# File 'lib/lws/apps/digital_signage.rb', line 123 attribute :id |
#name ⇒ String
Returns the name of the channel group.
140 |
# File 'lib/lws/apps/digital_signage.rb', line 140 attribute :name |
#parent ⇒ Channel::Group?
Returns the parent group of the channel group.
144 145 146 |
# File 'lib/lws/apps/digital_signage.rb', line 144 belongs_to :parent, class_name: "LWS::DigitalSignage::Channel::Group", foreign_key: "parent_id", uri: "channel/groups/:id" |
#parent_id ⇒ Fixnum?
Returns the ID of the parent group of the channel group.
150 |
# File 'lib/lws/apps/digital_signage.rb', line 150 attribute :parent_id |
#tags ⇒ Array<Channel::Group::Tag>
Returns the tags of the channel group.
154 155 |
# File 'lib/lws/apps/digital_signage.rb', line 154 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.
159 160 |
# File 'lib/lws/apps/digital_signage.rb', line 159 has_many :time_schedule_overrides, class_name: "LWS::DigitalSignage::Channel::TimeScheduleOverride", uri: "channel/groups/:group_id/time_schedule_overrides/(:id)" |
#updated_at ⇒ String (readonly)
Returns the timestamp of when the channel group was last updated.
168 |
# File 'lib/lws/apps/digital_signage.rb', line 168 attribute :updated_at |