Class: LWS::DigitalSignage::Player::Notification

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 class.

The player notification

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 notification.

Returns:

  • (String)

    the key of the player notification



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

attribute :key

#playerPlayer

Returns the player the notification is sent by.

Returns:

  • (Player)

    the player the notification is sent by



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

belongs_to :player, class_name: "LWS::DigitalSignage::Player"

#player_idInteger

Returns the ID of the player the notification is sent by.

Returns:

  • (Integer)

    the ID of the player the notification is sent by



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

attribute :player_id

#protected_valueBoolean

Whether the value of the player nofication should return a protected representation of the value

Returns:

  • (Boolean)

    whether the value of the player nofication should return a protected representation of the value



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

attribute :protected_value

#repeatedInteger?

Returns the number of times the notification was repeated.

Returns:

  • (Integer, nil)

    the number of times the notification was repeated



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

attribute :repeated

#valueString

Returns the value of the player notification.

Returns:

  • (String)

    the value of the player notification



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

attribute :value