Class: LWS::DigitalSignage::Slide::Schedule
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::DigitalSignage::Slide::Schedule
- Defined in:
- lib/lws/apps/digital_signage.rb
Overview
The slide schedule class
Instance Attribute Summary collapse
-
#date_end ⇒ Date
The date after which the slide schedule becomes inactive.
-
#date_start ⇒ Date
The date on which the slide schedule becomes active.
-
#duration ⇒ Integer
The duration of the slide within the slide schedule.
-
#name ⇒ String
The name of the slide schedule.
-
#priority ⇒ "low", ...
The priority of the slide schedule with respect to other slide schedules.
-
#skip_every ⇒ Integer
How many times to skip the slide within the slide schedule.
-
#slide_ids ⇒ Array<Integer>
The IDs of the slides that use the slide schedule.
-
#slides ⇒ Array<Slide>
The slides that use the slide schedule.
-
#time_end ⇒ Time
The time after which the slide schedule becomes inactive.
-
#time_start ⇒ Time
The time on which the slide schedule becomes active.
-
#visible ⇒ Boolean
Whether the slide is visible within the slide 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
#date_end ⇒ Date
Returns the date after which the slide schedule becomes inactive.
2107 |
# File 'lib/lws/apps/digital_signage.rb', line 2107 attribute :date_end |
#date_start ⇒ Date
Returns the date on which the slide schedule becomes active.
2111 |
# File 'lib/lws/apps/digital_signage.rb', line 2111 attribute :date_start |
#duration ⇒ Integer
Returns the duration of the slide within the slide schedule.
2115 |
# File 'lib/lws/apps/digital_signage.rb', line 2115 attribute :duration |
#name ⇒ String
Returns the name of the slide schedule.
2119 |
# File 'lib/lws/apps/digital_signage.rb', line 2119 attribute :name |
#priority ⇒ "low", ...
Returns the priority of the slide schedule with respect to other slide schedules.
2124 |
# File 'lib/lws/apps/digital_signage.rb', line 2124 attribute :priority |
#skip_every ⇒ Integer
Returns how many times to skip the slide within the slide schedule.
2129 |
# File 'lib/lws/apps/digital_signage.rb', line 2129 attribute :skip_every |
#slide_ids ⇒ Array<Integer>
Returns the IDs of the slides that use the slide schedule.
2134 |
# File 'lib/lws/apps/digital_signage.rb', line 2134 attribute :slide_ids |
#slides ⇒ Array<Slide>
Returns the slides that use the slide schedule.
2139 |
# File 'lib/lws/apps/digital_signage.rb', line 2139 has_many :slides, class: "LWS::DigitalSignage::Slide" |
#time_end ⇒ Time
Returns the time after which the slide schedule becomes inactive.
2143 |
# File 'lib/lws/apps/digital_signage.rb', line 2143 attribute :time_end |
#time_start ⇒ Time
Returns the time on which the slide schedule becomes active.
2147 |
# File 'lib/lws/apps/digital_signage.rb', line 2147 attribute :time_start |
#visible ⇒ Boolean
Returns whether the slide is visible within the slide schedule.
2151 |
# File 'lib/lws/apps/digital_signage.rb', line 2151 attribute :visible |