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

#url, #url_html

Method Summary

Methods inherited from Generic::Model

#reload, #rollback, #save

Instance Attribute Details

#created_atString (readonly)

Returns the timestamp of when the layout version was created.

Returns:

  • (String)

    the timestamp of when the layout version was created



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

attribute :created_at

#elementsArray<Layout::Element>

Returns the elements contained in the layout version.

Returns:

  • (Array<Layout::Element>)

    the elements contained in the layout version



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

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



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

attribute :id

#layoutLayout

Returns the layout the layout version is for.

Returns:

  • (Layout)

    the layout the layout version is for



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

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



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

attribute :layout_id

#updated_atString (readonly)

Returns the timestamp of when the layout version was last updated.

Returns:

  • (String)

    the timestamp of when the layout version was last updated



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

attribute :updated_at