Class: LWS::DigitalSignage::Channel::Tag

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

Overview

Note:

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

The channel tag 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

#dig, #reload, #rollback, #save

Instance Attribute Details

#channelChannel

Returns the channel associated with the tag.

Returns:

  • (Channel)

    the channel associated with the tag



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

belongs_to :channel, class_name: "LWS::DigitalSignage::Channel"

#channel_idInteger

Returns the ID of the channel associated with the tag.

Returns:

  • (Integer)

    the ID of the channel associated with the tag



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

attribute :channel_id

#keyString

Returns the key of the channel tag.

Returns:

  • (String)

    the key of the channel tag



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

attribute :key

#protected_valueBoolean

Whether the value of the channel tag should return a protected representation of the value

Returns:

  • (Boolean)

    whether the value of the channel tag should return a protected representation of the value



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

attribute :protected_value

#valueString?

Returns the value of the channel tag.

Returns:

  • (String, nil)

    the value of the channel tag



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

attribute :value