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



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

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



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

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



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

attribute :duration

#nameString

Returns the name of the slide schedule.

Returns:

  • (String)

    the name of the slide schedule



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

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



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

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



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

attribute :skip_every

#slidesArray<Slide>

Returns the slides that use the slide schedule.

Returns:

  • (Array<Slide>)

    the slides that use the slide schedule



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

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



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

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



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

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



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

attribute :visible