Class: LWS::DigitalSignage::Layout::Element::Property

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::Layout::Element class.

The layout element property 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

#attrString

Returns the attribute/property name.

Returns:

  • (String)

    the attribute/property name



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

attribute :attr

#elementLayout::Element

Returns the layout element the property is for.

Returns:



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

belongs_to :element, class_name: "LWS::DigitalSignage::Layout::Element"

#element_idInteger

Returns the ID of the layout element the property is for.

Returns:

  • (Integer)

    the ID of the layout element the property is for



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

attribute :element_id

#lockedBoolean

Returns whether the attribute/property value is locked.

Returns:

  • (Boolean)

    whether the attribute/property value is locked



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

attribute :locked

#valueString

Returns the attribute/property value.

Returns:

  • (String)

    the attribute/property value



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

attribute :value