Class: LWS::DigitalSignage::Player::Model

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

Overview

The player model

Defined Under Namespace

Classes: Capability

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

#branch_idsArray<Integer>

Returns the IDs of the player OS branches allowed for the player model.

Returns:

  • (Array<Integer>)

    the IDs of the player OS branches allowed for the player model



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

attribute :branch_ids

#branchesArray<Player::Os::Branch>

Returns the player OS branches allowed for the player model.

Returns:



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

has_many :branches, class_name: "LWS::DigitalSignage::Player::Os::Branch",
uri: "player/models/:model_id/branches(/:id)"

#capabilitiesArray<Player::Model::Capability>

Returns the capabilities of the player model.

Returns:



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

has_many :capabilities, class_name: "LWS::DigitalSignage::Player::Model::Capability",
uri: "player/models/:model_id/capabilities(/:id)"

#capability_idsArray<Integer>

Returns the IDs of the capabilities of the player model.

Returns:

  • (Array<Integer>)

    the IDs of the capabilities of the player model



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

attribute :capability_ids

#component_idsArray<Integer>

Returns the IDs of the player components that are used in the player model.

Returns:

  • (Array<Integer>)

    the IDs of the player components that are used in the player model



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

attribute :component_ids

#componentsArray<Player::Component>

Returns the player components that are used in the player model.

Returns:

  • (Array<Player::Component>)

    the player components that are used in the player model



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

has_many :components, class_name: "LWS::DigitalSignage::Player::Component",
uri: "player/models/:model_id/components(/:id)"

#mbf_hoursInteger

Returns the MBF (mean time between failures) in hours of the player mode.

Returns:

  • (Integer)

    the MBF (mean time between failures) in hours of the player mode



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

attribute :mbf_hours

#nameString

Returns the name of the player model.

Returns:

  • (String)

    the name of the player model



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

attribute :name

#player_idsArray<Integer>

Returns the IDs of the player that have the player model.

Returns:

  • (Array<Integer>)

    the IDs of the player that have the player model



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

attribute :player_ids

#playersArray<Player>

Returns the player that have the player model.

Returns:

  • (Array<Player>)

    the player that have the player model



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

has_many :players, class_name: "LWS::DigitalSignage::Player",
uri: "player/models/:model_id/players(/:id)"

#release_channel_idsArray<Integer>

Returns the IDs of the player OS release channels used for the player model.

Returns:

  • (Array<Integer>)

    the IDs of the player OS release channels used for the player model



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

attribute :release_channel_ids

#release_channelsArray<Player::Os::ReleaseChannel>

Returns the player OS release channels used for the player model.

Returns:



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

has_many :release_channels, class_name: "LWS::DigitalSignage::Player::Os::ReleaseChannel",
uri: "player/models/:model_id/release_channels(/:id)"

#resolution_idsArray<Integer>

Returns the IDs of the display resolutions supported by the player model.

Returns:

  • (Array<Integer>)

    the IDs of the display resolutions supported by the player model



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

attribute :resolution_ids

#resolutionsArray<Display::Resolution>

Returns the display resolutions supported by the player model.

Returns:



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

has_many :resolutions, class_name: "LWS::DigitalSignage::Display::Resolution",
uri: "player/models/:model_id/resolutions(/:id)"

#slugString (readonly)

Returns the slug(ified name) of the player model.

Returns:

  • (String)

    the slug(ified name) of the player model



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

attribute :slug

#support_endString

Returns the end date of support for the model.

Returns:

  • (String)

    the end date of support for the model



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

attribute :support_end

#support_eolString

Returns the date when the model is considered end-of-life in terms of support.

Returns:

  • (String)

    the date when the model is considered end-of-life in terms of support



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

attribute :support_eol

#support_startsString

Returns the start date of support for the model.

Returns:

  • (String)

    the start date of support for the model



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

attribute :support_starts

#temperature_criticalInteger?

Returns the critical temperature threshold (°C) for the player model.

Returns:

  • (Integer, nil)

    the critical temperature threshold (°C) for the player model



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

attribute :temperature_critical

#temperature_warningInteger?

Returns the warning temperature threshold (°C) for the player model.

Returns:

  • (Integer, nil)

    the warning temperature threshold (°C) for the player model



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

attribute :temperature_warning