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

Instance Attribute Details

#bandwidthFixnum

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

Returns:

  • (Fixnum)

    the bandwidth limit for the channel (bytes per second)



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

attribute :bandwidth

#companyLWS::Auth::Company

Returns the company the channel belongs to.

Returns:



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

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

#company_idFixnum

Returns the ID of the company the channel belongs to.

Returns:

  • (Fixnum)

    the ID of the company the channel belongs to



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

attribute :company_id

#created_atString (readonly)

Returns the timestamp of when the channel was created.

Returns:

  • (String)

    the timestamp of when the channel was created



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

attribute :created_at

#daily_reboot_timeString

Returns the daily reboot time of the channel.

Returns:

  • (String)

    the daily reboot time of the channel



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

attribute :daily_reboot_time

#displayObject

:nocov:



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

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

#display_idFixnum

Returns the ID of the display of the channel.

Returns:

  • (Fixnum)

    the ID of the display of the channel



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

attribute :display_id

#groupsArray<Channel::Group>

Returns the groups the channel is a member of.

Returns:



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

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

#idFixnum (readonly)

Returns the (unique) ID of the channel.

Returns:

  • (Fixnum)

    the (unique) ID of the channel



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

attribute :id

#nameString

Returns the name of the channel.

Returns:

  • (String)

    the name of the channel



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

attribute :name

#orientation"normal", ...

Returns the orientation of the channel.

Returns:

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

    the orientation of the channel



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

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



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

attribute :persistent_connection

#playersArray<Player>

Returns the players linked to the channel.

Returns:

  • (Array<Player>)

    the players linked to the channel



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

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



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

attribute :remote_control

#tagsArray<Channel::Tag>

Returns the tags of the channel.

Returns:



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

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

#time_scheduleChannel::TimeSchedule

Returns the time schedule of the channel.

Returns:



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

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

#time_schedule_idFixnum

Returns the ID of the time schedule of the channel.

Returns:

  • (Fixnum)

    the ID of the time schedule of the channel



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

attribute :time_schedule_id

#time_schedule_overridesArray<Channel::TimeScheduleOverride>

Returns the time schedule overrides of the channel.

Returns:



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

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



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

attribute :time_zone

#updated_atString (readonly)

Returns the timestamp of when the channel was last updated.

Returns:

  • (String)

    the timestamp of when the channel was last updated



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

attribute :updated_at

#volumeFixnum

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

Returns:

  • (Fixnum)

    the audio volume setting of the channel (percentage)



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

attribute :volume