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



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

attribute :key

#playerPlayer

Returns the player the notification is sent by.

Returns:

  • (Player)

    the player the notification is sent by



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

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



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

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



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

attribute :protected_value

#repeatedInteger?

Returns the number of times the notification was repeated.

Returns:

  • (Integer, nil)

    the number of times the notification was repeated



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

attribute :repeated

#valueString

Returns the value of the player notification.

Returns:

  • (String)

    the value of the player notification



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

attribute :value