Class: LWS::DigitalSignage::Slide::Schedule

Inherits:
Generic::Model
  • Object
show all
Defined in:
lib/lws/apps/digital_signage.rb

Overview

The slide schedule class

Instance Attribute Summary collapse

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_endDate

Returns the date after which the slide schedule becomes inactive.

Returns:

  • (Date)

    the date after which the slide schedule becomes inactive



1791
# File 'lib/lws/apps/digital_signage.rb', line 1791

attribute :date_end

#date_startDate

Returns the date on which the slide schedule becomes active.

Returns:

  • (Date)

    the date on which the slide schedule becomes active



1795
# File 'lib/lws/apps/digital_signage.rb', line 1795

attribute :date_start

#durationInteger

Returns the duration of the slide within the slide schedule.

Returns:

  • (Integer)

    the duration of the slide within the slide schedule



1799
# File 'lib/lws/apps/digital_signage.rb', line 1799

attribute :duration

#nameString

Returns the name of the slide schedule.

Returns:

  • (String)

    the name of the slide schedule



1803
# File 'lib/lws/apps/digital_signage.rb', line 1803

attribute :name

#priority"low", ...

Returns the priority of the slide schedule with respect to other slide schedules.

Returns:

  • ("low", "normal", "high")

    the priority of the slide schedule with respect to other slide schedules



1808
# File 'lib/lws/apps/digital_signage.rb', line 1808

attribute :priority

#skip_everyInteger

Returns how many times to skip the slide within the slide schedule.

Returns:

  • (Integer)

    how many times to skip the slide within the slide schedule



1813
# File 'lib/lws/apps/digital_signage.rb', line 1813

attribute :skip_every

#slidesArray<Slide>

Returns the slides that use the slide schedule.

Returns:

  • (Array<Slide>)

    the slides that use the slide schedule



1818
# File 'lib/lws/apps/digital_signage.rb', line 1818

has_many :slides, class: "LWS::DigitalSignage::Slide"

#time_endTime

Returns the time after which the slide schedule becomes inactive.

Returns:

  • (Time)

    the time after which the slide schedule becomes inactive



1822
# File 'lib/lws/apps/digital_signage.rb', line 1822

attribute :time_end

#time_startTime

Returns the time on which the slide schedule becomes active.

Returns:

  • (Time)

    the time on which the slide schedule becomes active



1826
# File 'lib/lws/apps/digital_signage.rb', line 1826

attribute :time_start

#visibleBoolean

Returns whether the slide is visible within the slide schedule.

Returns:

  • (Boolean)

    whether the slide is visible within the slide schedule



1830
# File 'lib/lws/apps/digital_signage.rb', line 1830

attribute :visible