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

Instance Attribute Details

#channelsArray<Channel>

Returns the channels using the time schedule.

Returns:

  • (Array<Channel>)

    the channels using the time schedule



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

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:



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

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

#company_idFixnum

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

Returns:

  • (Fixnum)

    the ID of the company the channel time schedule belongs to



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

attribute :company_id

#created_atString (readonly)

Returns the timestamp of when the channel time schedule was created.

Returns:

  • (String)

    the timestamp of when the channel time schedule was created



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

attribute :created_at

#daysArray<Channel::TimeSchedule::Day>

Returns the days included in the channel time schedule.

Returns:



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

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

#idFixnum (readonly)

Returns the (unique) ID of the channel time schedule.

Returns:

  • (Fixnum)

    the (unique) ID of the channel time schedule



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

attribute :id

#nameString

Returns the name of the channel time schedule.

Returns:

  • (String)

    the name of the channel time schedule



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

attribute :name

#updated_atString (readonly)

Returns the timestamp of when the channel time schedule was last updated.

Returns:

  • (String)

    the timestamp of when the channel time schedule was last updated



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

attribute :updated_at