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



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

attribute :attr

#elementLayout::Element

Returns the layout element the property is for.

Returns:



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

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



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

attribute :element_id

#lockedBoolean

Returns whether the attribute/property value is locked.

Returns:

  • (Boolean)

    whether the attribute/property value is locked



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

attribute :locked

#valueString

Returns the attribute/property value.

Returns:

  • (String)

    the attribute/property value



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

attribute :value