Class: LWS::DigitalSignage::Layout::Version

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 class.

The layout version class

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#dig, #reload, #rollback, #save

Instance Attribute Details

#elementsArray<Layout::Element>

Returns the elements contained in the layout version.

Returns:

  • (Array<Layout::Element>)

    the elements contained in the layout version



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

has_many :elements, class_name: "LWS::DigitalSignage::Layout::Element"

#idInteger (readonly)

Returns the (unique) ID of the layout version.

Returns:

  • (Integer)

    the (unique) ID of the layout version



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

attribute :id

#layoutLayout

Returns the layout the layout version is for.

Returns:

  • (Layout)

    the layout the layout version is for



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

belongs_to :layout

#layout_idInteger

Returns the ID of the layout the layout version is for.

Returns:

  • (Integer)

    the ID of the layout the layout version is for



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

attribute :layout_id