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



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

attribute :attr

#elementLayout::Element

Returns the layout element the property is for.

Returns:



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

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



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

attribute :element_id

#lockedBoolean

Returns whether the attribute/property value is locked.

Returns:

  • (Boolean)

    whether the attribute/property value is locked



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

attribute :locked

#valueString

Returns the attribute/property value.

Returns:

  • (String)

    the attribute/property value



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

attribute :value