Class: LWS::DigitalSignage::Layout::Element::Customizable

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 customizable 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 customizable attribute/property name.

Returns:

  • (String)

    the customizable attribute/property name



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

attribute :attr

#descriptionString

Returns the customizable attribute/property description.

Returns:

  • (String)

    the customizable attribute/property description



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

attribute :description

#elementLayout::element

Returns the layout element the customizable property is for.

Returns:

  • (Layout::element)

    the layout element the customizable property is for



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

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

#element_idInteger

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

Returns:

  • (Integer)

    the ID of the layout element the customizable is for



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

attribute :element_id

#helpString

Returns the customizable attribute/property help text.

Returns:

  • (String)

    the customizable attribute/property help text



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

attribute :help

#placeholderString

Returns the customizable attribute/property placholder text.

Returns:

  • (String)

    the customizable attribute/property placholder text



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

attribute :placeholder

#presetsArray<Hash{String => String}>

This is a list of mappings of the preset label (key “label”) to the preset value (key “value”).

Returns:

  • (Array<Hash{String => String}>)

    the presets for attribute values



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

attribute :presets

#requiredString

Returns whether the customizable attribute/property is required.

Returns:

  • (String)

    whether the customizable attribute/property is required



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

attribute :required

#titleString

Returns the customizable attribute/property title.

Returns:

  • (String)

    the customizable attribute/property title



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

attribute :title

#uuidString

Returns the UUID of the customizable attribute/property.

Returns:

  • (String)

    the UUID of the customizable attribute/property



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

attribute :uuid