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

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#accountLWS::Auth::Account

Returns the account used for creating the slide.

Returns:



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

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



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

attribute :account_id

#channel_groupsArray<Channel::Group>

Returns the channel group the slide is scheduled on.

Returns:

  • (Array<Channel::Group>)

    the channel group the slide is scheduled on



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

has_many :channel_groups, class_name: "LWS::DigitalSignage::Channel::Group"

#channelsArray<Channel>

Returns the channels the slide is scheduled on.

Returns:

  • (Array<Channel>)

    the channels the slide is scheduled on



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

has_many :channels, class_name: "LWS::DigitalSignage::Channel"

#commentsString?

Returns the comments/remarks for the slide.

Returns:

  • (String, nil)

    the comments/remarks for the slide



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

attribute :comments

#companyLWS::Auth::Company

Returns the company the slide belongs to.

Returns:



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

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



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

attribute :company_id

#durationInteger?

Returns the duration of the slide (for fixed or content-bound durations in the layout).

Returns:

  • (Integer, nil)

    the duration of the slide (for fixed or content-bound durations in the layout)



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

attribute :duration

#edit_account_idsArray<Integer>

Returns the IDs of the accounts that can edit the slide.

Returns:

  • (Array<Integer>)

    the IDs of the accounts that can edit the slide



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

attribute :edit_account_ids

#editable_by_meBoolean

Returns whether the authenticated user can edit the slide.

Returns:

  • (Boolean)

    whether the authenticated user can edit the slide



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

attribute :editable_by_me

#layoutLWS::Layout

Returns the layout the slide uses.

Returns:

  • (LWS::Layout)

    the layout the slide uses



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

belongs_to :layout

#layout_idInteger

Returns the ID of the layout the slide uses.

Returns:

  • (Integer)

    the ID of the layout the slide uses



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

attribute :layout_id

#nameString

Returns the name of the slide.

Returns:

  • (String)

    the name of the slide



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

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



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

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



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

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

#status"initializing", ... (readonly)

Returns the status of the slide.

Returns:

  • ("initializing", "waiting_content", "available", "error")

    the status of the slide



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

attribute :status

#thumbnail_urlString?

Returns the URL of the thumbnail of the slide.

Returns:

  • (String, nil)

    the URL of the thumbnail of the slide



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

attribute :thumbnail_url