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

Instance Attribute Details

#branchesArray<Player::Os::Branch>

Returns the player OS branches allowed for the player model.

Returns:



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

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:



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

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

#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



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

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

#created_atString (readonly)

Returns the timestamp of when the player model was created.

Returns:

  • (String)

    the timestamp of when the player model was created



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

attribute :created_at

#idFixnum (readonly)

Returns the (unique) ID of the player model.

Returns:

  • (Fixnum)

    the (unique) ID of the player model



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

attribute :id

#mbf_hoursFixnum

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

Returns:

  • (Fixnum)

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



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

attribute :mbf_hours

#nameString

Returns the name of the player model.

Returns:

  • (String)

    the name of the player model



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

attribute :name

#playersArray<Player>

Returns the player that have the player model.

Returns:

  • (Array<Player>)

    the player that have the player model



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

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

#release_channelsArray<Player::Os::ReleaseChannel>

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

Returns:



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

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

#resolutionsArray<Display::Resolution>

Returns the display resolutions supported by the player model.

Returns:



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

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



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

attribute :slug

#support_endString

Returns the end date of support for the model.

Returns:

  • (String)

    the end date of support for the model



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

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



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

attribute :support_eol

#support_startsString

Returns the start date of support for the model.

Returns:

  • (String)

    the start date of support for the model



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

attribute :support_starts

#temperature_criticalFixnum?

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

Returns:

  • (Fixnum, nil)

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



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

attribute :temperature_critical

#temperature_warningFixnum?

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

Returns:

  • (Fixnum, nil)

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



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

attribute :temperature_warning

#updated_atString (readonly)

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

Returns:

  • (String)

    the timestamp of when the player model was last updated



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

attribute :updated_at