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



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

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



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

attribute :channel_id

#keyString

Returns the key of the channel tag.

Returns:

  • (String)

    the key of the channel tag



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

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



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

attribute :protected_value

#valueString?

Returns the value of the channel tag.

Returns:

  • (String, nil)

    the value of the channel tag



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

attribute :value