Class: LWS::DigitalSignage::Player::Configuration

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

Overview

The player configuration class

Defined Under Namespace

Classes: Setting

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

#companyLWS::Auth::Company

Returns the company the player configuration belongs to.

Returns:



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

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

#company_idInteger

Returns the ID of the company the player configuration belongs to.

Returns:

  • (Integer)

    the ID of the company the player configuration belongs to



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

attribute :company_id

#descriptionString?

Returns the description of the player configuration.

Returns:

  • (String, nil)

    the description of the player configuration



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

attribute :description

#nameString

Returns the name of the player configuration.

Returns:

  • (String)

    the name of the player configuration



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

attribute :name

#playersArray<Player>

Returns the players the configuration is used for.

Returns:

  • (Array<Player>)

    the players the configuration is used for



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

has_many :players, class_name: "LWS::DigitalSignage::Player",
uri: "player/configurations/:configuration_id/players(/:id)"

#predefined_configurationPlayer::PredefinedConfiguration?

Returns the predefined configuration that is used as a bases for the configuration.

Returns:



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

belongs_to :predefined_configuration, class_name: "LWS::DigitalSignage::Player::PredefinedConfiguration",
uri: "player/predefined_configurations/:id"

#predefined_configuration_idInteger?

Returns the ID of the predefined configuration that is used as a basis for the player configuration.

Returns:

  • (Integer, nil)

    the ID of the predefined configuration that is used as a basis for the player configuration



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

attribute :predefined_configuration_id

#settingsPlayer::Configuration::Setting

Returns the settings of the player configuration.

Returns:



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

has_many :settings, class_name: "LWS::DigitalSignage::Player::Configuration::Setting",
uri: "player/configurations/:configuration_id/settings(/:id)"