Class: LWS::DigitalSignage::Channel

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

Overview

The channel class

Defined Under Namespace

Classes: Group, Tag, TimeSchedule, TimeScheduleOverride

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

#bandwidthInteger

Returns the bandwidth limit for the channel (bytes per second).

Returns:

  • (Integer)

    the bandwidth limit for the channel (bytes per second)



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

attribute :bandwidth

#companyLWS::Auth::Company

Returns the company the channel belongs to.

Returns:



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

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

#company_idInteger

Returns the ID of the company the channel belongs to.

Returns:

  • (Integer)

    the ID of the company the channel belongs to



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

attribute :company_id

#daily_reboot_timeString

Returns the daily reboot time of the channel.

Returns:

  • (String)

    the daily reboot time of the channel



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

attribute :daily_reboot_time

#displayObject

:nocov:



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

belongs_to :display, class_name: "LWS::DigitalSignage::Display"

#display_idInteger

Returns the ID of the display of the channel.

Returns:

  • (Integer)

    the ID of the display of the channel



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

attribute :display_id

#groupsArray<Channel::Group>

Returns the groups the channel is a member of.

Returns:



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

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

#layout_kind"default", "stage"

Returns the layout (version) kinds to consider when generating a playlist for the channel.

Returns:

  • ("default", "stage")

    the layout (version) kinds to consider when generating a playlist for the channel



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

attribute :layout_kind

#marquee_configString

Returns the marquee/ticker tape configuration (JSON) of the channel.

Returns:

  • (String)

    the marquee/ticker tape configuration (JSON) of the channel



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

attribute :marquee_config

#nameString

Returns the name of the channel.

Returns:

  • (String)

    the name of the channel



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

attribute :name

#orientation"normal", ...

Returns the orientation of the channel.

Returns:

  • ("normal", "left", "right", "inverted")

    the orientation of the channel



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

attribute :orientation

#persistent_connectionBoolean

Returns whether the channel is considered to have a persistent network connection.

Returns:

  • (Boolean)

    whether the channel is considered to have a persistent network connection



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

attribute :persistent_connection

#playersArray<Player>

Returns the players linked to the channel.

Returns:

  • (Array<Player>)

    the players linked to the channel



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

has_many :players, class_name: "LWS::DigitalSignage::Player"

#remote_controlBoolean

Returns whether remote control is enabled for the channel.

Returns:

  • (Boolean)

    whether remote control is enabled for the channel



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

attribute :remote_control

#slidesArray<Slide>

Returns the slides schedules on the channel.

Returns:

  • (Array<Slide>)

    the slides schedules on the channel



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

has_many :slides, class_name: "LWS::DigitalSignage::Slide"

#tagsArray<Channel::Tag>

Returns the tags of the channel.

Returns:



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

has_many :tags, class_name: "LWS::DigitalSignage::Channel::Tag"

#time_scheduleChannel::TimeSchedule

Returns the time schedule of the channel.

Returns:



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

belongs_to :time_schedule, class_name: "LWS::DigitalSignage::Channel::TimeSchedule",
uri: "channel/time_schedules/:id"

#time_schedule_idInteger

Returns the ID of the time schedule of the channel.

Returns:

  • (Integer)

    the ID of the time schedule of the channel



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

attribute :time_schedule_id

#time_schedule_overridesArray<Channel::TimeScheduleOverride>

Returns the time schedule overrides of the channel.

Returns:



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

has_many :time_schedule_overrides, class_name: "LWS::DigitalSignage::Channel::TimeScheduleOverride"

#time_zoneString

Returns the time zone for the channel.

Returns:

  • (String)

    the time zone for the channel



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

attribute :time_zone

#volumeInteger

Returns the audio volume setting of the channel (percentage).

Returns:

  • (Integer)

    the audio volume setting of the channel (percentage)



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

attribute :volume