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

#url, #url_html

Method Summary

Methods inherited from Generic::Model

#reload, #rollback, #save

Instance Attribute Details

#accountLWS::Auth::Account

Returns the account used for creating the slide.

Returns:



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

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



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

attribute :account_id

#companyLWS::Auth::Company

Returns the company the slide belongs to.

Returns:



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

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



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

attribute :company_id

#created_atstring (readonly)

Returns the timestamp of when the slide was created.

Returns:

  • (string)

    the timestamp of when the slide was created



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

attribute :created_at

#idInteger (readonly)

Returns the (unique) ID of the slide.

Returns:

  • (Integer)

    the (unique) ID of the slide



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

attribute :id

#layoutLWS::Layout

Returns the layout the slide uses.

Returns:

  • (LWS::Layout)

    the layout the slide uses



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

belongs_to :layout

#layout_idInteger

Returns the ID of the layout the slide uses.

Returns:

  • (Integer)

    the ID of the layout the slide uses



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

attribute :layout_id

#nameString

Returns the name of the slide.

Returns:

  • (String)

    the name of the slide



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

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



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

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



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

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

#updated_atstring (readonly)

Returns the timestamp of when the slide was last updated.

Returns:

  • (string)

    the timestamp of when the slide was last updated



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

attribute :updated_at