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

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#channelChannel

Returns the channel associated with the tag.

Returns:

  • (Channel)

    the channel associated with the tag



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

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



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

attribute :channel_id

#keyString

Returns the key of the channel tag.

Returns:

  • (String)

    the key of the channel tag



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

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



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

attribute :protected_value

#valueString?

Returns the value of the channel tag.

Returns:

  • (String, nil)

    the value of the channel tag



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

attribute :value