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



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

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



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

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



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

attribute :duration

#nameString

Returns the name of the slide schedule.

Returns:

  • (String)

    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.

Returns:

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

    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_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



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

attribute :skip_every

#slide_idsArray<Integer>

Returns the IDs of the slides that use the slide schedule.

Returns:

  • (Array<Integer>)

    the IDs of the slides that use the slide schedule



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

attribute :slide_ids

#slidesArray<Slide>

Returns the slides that use the slide schedule.

Returns:

  • (Array<Slide>)

    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_endTime

Returns the time after which the slide schedule becomes inactive.

Returns:

  • (Time)

    the time after which the slide schedule becomes inactive



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

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



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

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



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

attribute :visible