Class: LWS::DigitalSignage::Channel::TimeSchedule

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

Overview

The channel time schedule class

Defined Under Namespace

Classes: Day

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

#channelsArray<Channel>

Returns the channels using the time schedule.

Returns:

  • (Array<Channel>)

    the channels using the time schedule



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

has_many :channels, class_name: "LWS::DigitalSignage::Channel",
uri: "channel/time_schedules/:time_schedule_id/channels(/:id)"

#companyLWS::Auth::Company

Returns the company the channel time schedule belongs to.

Returns:



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

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

#company_idInteger

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

Returns:

  • (Integer)

    the ID of the company the channel time schedule belongs to



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

attribute :company_id

#daysArray<Channel::TimeSchedule::Day>

Returns the days included in the channel time schedule.

Returns:



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

has_many :days, class_name: "LWS::DigitalSignage::Channel::TimeSchedule::Day",
uri: "channel/time_schedules/:time_schedule_id/days(/:id)"

#nameString

Returns the name of the channel time schedule.

Returns:

  • (String)

    the name of the channel time schedule



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

attribute :name