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

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

Overview

Note:

This class is only used within the context of the LWS::DigitalSignage::Player::Model class.

The player model capability class

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

#keyString

Returns the key of the player model capability.

Returns:

  • (String)

    the key of the player model capability



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

attribute :key

#modelPlayer::Model

Returns the player model that has the capability.

Returns:



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

belongs_to :model, class_name: "LWS::DigitalSignage::Player::Model",
uri: "player/models/:id"

#model_idInteger

Returns the ID of the player model that has the capability.

Returns:

  • (Integer)

    the ID of the player model that has the capability



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

attribute :model_id

#valueString

Returns the value of the player model capability.

Returns:

  • (String)

    the value of the player model capability



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

attribute :value