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



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

attribute :key

#modelPlayer::Model

Returns the player model that has the capability.

Returns:



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

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



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

attribute :model_id

#valueString

Returns the value of the player model capability.

Returns:

  • (String)

    the value of the player model capability



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

attribute :value