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, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#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



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

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



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

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



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

attribute :duration

#idInteger (readonly)

Returns the (unique) ID of the slide schedule.

Returns:

  • (Integer)

    the (unique) ID of the slide schedule



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

attribute :id

#nameString

Returns the name of the slide schedule.

Returns:

  • (String)

    the name of the slide schedule



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

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



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

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



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

attribute :skip_every

#slidesArray<Slide>

Returns the slides that use the slide schedule.

Returns:

  • (Array<Slide>)

    the slides that use the slide schedule



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

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



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

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



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

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



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

attribute :visible