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:



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

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



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

attribute :account_id

#channel_group_idsArray<Integer>

Returns the IDs of the channel group the slide is scheduled on.

Returns:

  • (Array<Integer>)

    the IDs of the channel group the slide is scheduled on



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

attribute :channel_group_ids

#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



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

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

#channel_idsArray<Integer>

Returns the IDs of the channels the slide is scheduled on.

Returns:

  • (Array<Integer>)

    the IDs of the channels the slide is scheduled on



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

attribute :channel_ids

#channelsArray<Channel>

Returns the channels the slide is scheduled on.

Returns:

  • (Array<Channel>)

    the channels the slide is scheduled on



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

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



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

attribute :comments

#companyLWS::Auth::Company

Returns the company the slide belongs to.

Returns:



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

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



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

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)



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

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



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

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



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

attribute :editable_by_me

#layoutLWS::Layout

Returns the layout the slide uses.

Returns:

  • (LWS::Layout)

    the layout the slide uses



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

belongs_to :layout

#layout_idInteger

Returns the ID of the layout the slide uses.

Returns:

  • (Integer)

    the ID of the layout the slide uses



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

attribute :layout_id

#nameString

Returns the name of the slide.

Returns:

  • (String)

    the name of the slide



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

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



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

attribute :order_priority

#schedule_idsArray<Integer>

Returns the IDs of the slide schedules that apply for the slide.

Returns:

  • (Array<Integer>)

    the IDs of the slide schedules that apply for the slide



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

attribute :schedule_ids

#schedulesArray<Schedule>

Returns the slide schedules that apply for the slide.

Returns:

  • (Array<Schedule>)

    the slide schedules that apply for the slide



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

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



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

attribute :status

#thumbnail_urlString?

Returns the URL of the thumbnail of the slide.

Returns:

  • (String, nil)

    the URL of the thumbnail of the slide



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

attribute :thumbnail_url

#uuidString

Returns the UUID of the slide.

Returns:

  • (String)

    the UUID of the slide



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

attribute :uuid