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

Instance Attribute Details

#companyLWS::Auth::Company

Returns the company the player configuration belongs to.

Returns:



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

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

#company_idFixnum

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

Returns:

  • (Fixnum)

    the ID of the company the player configuration belongs to



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

attribute :company_id

#created_atString (readonly)

Returns the timestamp of when the player configuration was created.

Returns:

  • (String)

    the timestamp of when the player configuration was created



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

attribute :created_at

#descriptionString?

Returns the description of the player configuration.

Returns:

  • (String, nil)

    the description of the player configuration



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

attribute :description

#idFixnum (readonly)

Returns the (unique) ID of the player configuration.

Returns:

  • (Fixnum)

    the (unique) ID of the player configuration



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

attribute :id

#nameString

Returns the name of the player configuration.

Returns:

  • (String)

    the name of the player configuration



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

attribute :name

#playersArray<Player>

Returns the players the configuration is used for.

Returns:

  • (Array<Player>)

    the players the configuration is used for



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

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:



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

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

#predefined_configuration_idFixnum?

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

Returns:

  • (Fixnum, nil)

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



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

attribute :predefined_configuration_id

#settingsPlayer::Configuration::Setting

Returns the settings of the player configuration.

Returns:



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

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

#updated_atString (readonly)

Returns the timestamp of when the player configuration was last updated.

Returns:

  • (String)

    the timestamp of when the player configuration was last updated



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

attribute :updated_at