Class: LWS::DigitalSignage::Channel::TimeSchedule
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::DigitalSignage::Channel::TimeSchedule
- Defined in:
- lib/lws/apps/digital_signage.rb
Overview
The channel time schedule class
Defined Under Namespace
Classes: Day
Instance Attribute Summary collapse
-
#channel_ids ⇒ Array<Integer>
The IDs of the channels using the time schedule.
-
#channels ⇒ Array<Channel>
The channels using the time schedule.
-
#company ⇒ LWS::Auth::Company
The company the channel time schedule belongs to.
-
#company_id ⇒ Integer
The ID of the company the channel time schedule belongs to.
-
#day_ids ⇒ Array<Integer>
The IDs of the days included in the channel time schedule.
-
#days ⇒ Array<Channel::TimeSchedule::Day>
The days included in the channel time schedule.
-
#name ⇒ String
The name of the channel time schedule.
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 using the time schedule.
306 |
# File 'lib/lws/apps/digital_signage.rb', line 306 attribute :channel_ids |
#channels ⇒ Array<Channel>
Returns the channels using the time schedule.
310 311 |
# File 'lib/lws/apps/digital_signage.rb', line 310 has_many :channels, class_name: "LWS::DigitalSignage::Channel", uri: "channel/time_schedules/:time_schedule_id/channels(/:id)" |
#company ⇒ LWS::Auth::Company
Returns the company the channel time schedule belongs to.
297 |
# File 'lib/lws/apps/digital_signage.rb', line 297 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Integer
Returns the ID of the company the channel time schedule belongs to.
301 |
# File 'lib/lws/apps/digital_signage.rb', line 301 attribute :company_id |
#day_ids ⇒ Array<Integer>
Returns the IDs of the days included in the channel time schedule.
316 |
# File 'lib/lws/apps/digital_signage.rb', line 316 attribute :day_ids |
#days ⇒ Array<Channel::TimeSchedule::Day>
Returns the days included in the channel time schedule.
321 322 |
# File 'lib/lws/apps/digital_signage.rb', line 321 has_many :days, class_name: "LWS::DigitalSignage::Channel::TimeSchedule::Day", uri: "channel/time_schedules/:time_schedule_id/days(/:id)" |
#name ⇒ String
Returns the name of the channel time schedule.
326 |
# File 'lib/lws/apps/digital_signage.rb', line 326 attribute :name |