Class: LWS::DigitalSignage::Channel::TimeScheduleOverride

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

Overview

The channel time override schedule class

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

#channel_idsArray<Integer>

Returns the IDs of the channels using the time schedule override.

Returns:

  • (Array<Integer>)

    the IDs of the channels using the time schedule override



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

attribute :channel_ids

#channelsArray<Channel>

Returns the channels using the time schedule override.

Returns:

  • (Array<Channel>)

    the channels using the time schedule override



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

has_many :channels, class_name: "LWS::DigitalSignage::Channel",
uri: "channel/time_schedule_overrides/:time_schedule_override_id/channels(/:id)"

#companyLWS::Auth::Company

Returns the company the channel time schedule override belongs to.

Returns:



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

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

#company_idInteger

Returns the ID of the company the channel time schedule override belongs to.

Returns:

  • (Integer)

    the ID of the company the channel time schedule override belongs to



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

attribute :company_id

#endString

Returns the end date (inclusive) of the channel time schedule override.

Returns:

  • (String)

    the end date (inclusive) of the channel time schedule override



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

attribute :end

#group_idsArray<Integer>

Returns the IDs of the channel groups using the time schedule override.

Returns:

  • (Array<Integer>)

    the IDs of the channel groups using the time schedule override



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

attribute :group_ids

#groupsArray<Channel::Group>

Returns the channel groups using the time schedule override.

Returns:

  • (Array<Channel::Group>)

    the channel groups using the time schedule override



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

has_many :groups, class_name: "LWS::DigitalSignage::Channel::Group",
uri: "channel/time_schedule_overrides/:time_schedule_override_id/groups(/:id)"

#nameString

Returns the name of the channel time schedule override.

Returns:

  • (String)

    the name of the channel time schedule override



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

attribute :name

#shutdownString

Returns the shutdown time of the channel.

Returns:

  • (String)

    the shutdown time of the channel



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

attribute :shutdown

#startString

Returns the start date of the channel time schedule override.

Returns:

  • (String)

    the start date of the channel time schedule override



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

attribute :start

#wakeupString

Returns the wakeup time of the channel.

Returns:

  • (String)

    the wakeup time of the channel



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

attribute :wakeup