Class: LWS::DigitalSignage::Slide

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

Overview

The slide class

Defined Under Namespace

Classes: Schedule

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#dig, #reload, #rollback, #save

Instance Attribute Details

#accountLWS::Auth::Account

Returns the account used for creating the slide.

Returns:



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

belongs_to :account, class_name: "LWS::Auth::Account"

#account_idInteger

Returns the ID of the account used for creating the slide.

Returns:

  • (Integer)

    the ID of the account used for creating the slide



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

attribute :account_id

#companyLWS::Auth::Company

Returns the company the slide belongs to.

Returns:



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

belongs_to :company, class_name: "LWS::Auth::Company"

#company_idInteger

Returns the ID of the company the slide belongs to.

Returns:

  • (Integer)

    the ID of the company the slide belongs to



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

attribute :company_id

#layoutLWS::Layout

Returns the layout the slide uses.

Returns:

  • (LWS::Layout)

    the layout the slide uses



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

belongs_to :layout

#layout_idInteger

Returns the ID of the layout the slide uses.

Returns:

  • (Integer)

    the ID of the layout the slide uses



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

attribute :layout_id

#nameString

Returns the name of the slide.

Returns:

  • (String)

    the name of the slide



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

attribute :name

#order_priorityInteger

Returns the order priority within a playlist for a channel.

Returns:

  • (Integer)

    the order priority within a playlist for a channel



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

attribute :order_priority

#schedulesArray<Schedule>

Returns the slide schedules that apply for the slide.

Returns:

  • (Array<Schedule>)

    the slide schedules that apply for the slide



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

has_many :schedules, class_name: "LWS::DigitalSignage::Slide::Schedule"