Class: LWS::DigitalSignage::Channel
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::DigitalSignage::Channel
- Defined in:
- lib/lws/apps/digital_signage.rb
Overview
The channel class
Defined Under Namespace
Classes: Group, Tag, TimeSchedule, TimeScheduleOverride
Instance Attribute Summary collapse
-
#company ⇒ LWS::Auth::Company
The company the channel belongs to.
-
#company_id ⇒ Fixnum
The ID of the company the channel belongs to.
-
#created_at ⇒ String
readonly
The timestamp of when the channel was created.
-
#display ⇒ Object
:nocov:.
-
#display_id ⇒ Fixnum
The ID of the display of the channel.
-
#groups ⇒ Array<Channel::Group>
The groups the channel is a member of.
-
#id ⇒ Fixnum
readonly
The (unique) ID of the channel.
-
#name ⇒ String
The name of the channel.
-
#orientation ⇒ "normal", ...
The orientation of the channel.
-
#players ⇒ Array<Player>
The players linked to the channel.
-
#tags ⇒ Array<Channel::Tag>
The tags of the channel.
-
#time_schedule ⇒ Channel::TimeSchedule
The time schedule of the channel.
-
#time_schedule_id ⇒ Fixnum
The ID of the time schedule of the channel.
-
#time_schedule_overrides ⇒ Array<Channel::TimeScheduleOverride>
The time schedule overrides of the channel.
-
#time_zone ⇒ String
The time zone for the channel.
-
#updated_at ⇒ String
readonly
The timestamp of when the channel was last updated.
Instance Attribute Details
#company ⇒ LWS::Auth::Company
Returns the company the channel belongs to.
48 |
# File 'lib/lws/apps/digital_signage.rb', line 48 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Fixnum
Returns the ID of the company the channel belongs to.
52 |
# File 'lib/lws/apps/digital_signage.rb', line 52 attribute :company_id |
#created_at ⇒ String (readonly)
Returns the timestamp of when the channel was created.
109 |
# File 'lib/lws/apps/digital_signage.rb', line 109 attribute :created_at |
#display ⇒ Object
:nocov:
56 |
# File 'lib/lws/apps/digital_signage.rb', line 56 belongs_to :display, class_name: "LWS::DigitalSignage::Display" |
#display_id ⇒ Fixnum
Returns the ID of the display of the channel.
66 |
# File 'lib/lws/apps/digital_signage.rb', line 66 attribute :display_id |
#groups ⇒ Array<Channel::Group>
Returns the groups the channel is a member of.
70 |
# File 'lib/lws/apps/digital_signage.rb', line 70 has_many :groups, class_name: "LWS::DigitalSignage::Channel::Group" |
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the channel.
44 |
# File 'lib/lws/apps/digital_signage.rb', line 44 attribute :id |
#name ⇒ String
Returns the name of the channel.
74 |
# File 'lib/lws/apps/digital_signage.rb', line 74 attribute :name |
#orientation ⇒ "normal", ...
Returns the orientation of the channel.
79 |
# File 'lib/lws/apps/digital_signage.rb', line 79 attribute :orientation |
#players ⇒ Array<Player>
Returns the players linked to the channel.
83 |
# File 'lib/lws/apps/digital_signage.rb', line 83 has_many :players, class_name: "LWS::DigitalSignage::Player" |
#tags ⇒ Array<Channel::Tag>
Returns the tags of the channel.
87 |
# File 'lib/lws/apps/digital_signage.rb', line 87 has_many :tags, class_name: "LWS::DigitalSignage::Channel::Tag" |
#time_schedule ⇒ Channel::TimeSchedule
Returns the time schedule of the channel.
91 92 |
# File 'lib/lws/apps/digital_signage.rb', line 91 belongs_to :time_schedule, class_name: "LWS::DigitalSignage::Channel::TimeSchedule", uri: "channel/time_schedules/:id" |
#time_schedule_id ⇒ Fixnum
Returns the ID of the time schedule of the channel.
96 |
# File 'lib/lws/apps/digital_signage.rb', line 96 attribute :time_schedule_id |
#time_schedule_overrides ⇒ Array<Channel::TimeScheduleOverride>
Returns the time schedule overrides of the channel.
101 |
# File 'lib/lws/apps/digital_signage.rb', line 101 has_many :time_schedule_overrides, class_name: "LWS::DigitalSignage::Channel::TimeScheduleOverride" |
#time_zone ⇒ String
Returns the time zone for the channel.
105 |
# File 'lib/lws/apps/digital_signage.rb', line 105 attribute :time_zone |
#updated_at ⇒ String (readonly)
Returns the timestamp of when the channel was last updated.
113 |
# File 'lib/lws/apps/digital_signage.rb', line 113 attribute :updated_at |