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, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#archive_storage_idString?

Returns sthe storage ID of the archive/layout pack of the layout version.

Returns:

  • (String, nil)

    sthe storage ID of the archive/layout pack of the layout version



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

attribute :archive_storage_id

#archive_urlString?

Note:

To be able retrieve the archive, the token needs to be passed via X-Token in the HTTP request headers!

Note:

This attribute is only available if the token is of an account with sysadmin permissions

Returns the URL of the archive/layout pack of the layout version (if accessible).

Returns:

  • (String, nil)

    the URL of the archive/layout pack of the layout version (if accessible)



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

attribute :archive_url

#element_idsArray<Integer>

Returns the IDs of the elements contained in the layout version.

Returns:

  • (Array<Integer>)

    the IDs of the elements contained in the layout version



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

attribute :element_ids

#elementsArray<Layout::Element>

Returns the elements contained in the layout version.

Returns:

  • (Array<Layout::Element>)

    the elements contained in the layout version



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

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

#heightInteger

Returns the intended height of the layout version.

Returns:

  • (Integer)

    the intended height of the layout version



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

attribute :width

#layoutLayout

Returns the layout the layout version is for.

Returns:

  • (Layout)

    the layout the layout version is for



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

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



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

attribute :layout_id

#rotation"landscape", "portrait"

Returns the rotation (orientation) of the layout version.

Returns:

  • ("landscape", "portrait")

    the rotation (orientation) of the layout version



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

attribute :rotation

#rotation_angle0, 90

Returns the rotation angle of the layout version.

Returns:

  • (0, 90)

    the rotation angle of the layout version



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

attribute :rotation_angle

#status"initializing", ... (readonly)

Returns the status of the layout version.

Returns:

  • ("initializing", "creating_pack", "creating_thumbnail", "available", "archive", "stage")

    the status of the layout version



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

attribute :status

#thumbnail_urlString?

Returns the URL of the thumbnail of the layout version.

Returns:

  • (String, nil)

    the URL of the thumbnail of the layout version



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

attribute :thumbnail_url

#widthInteger

Returns the intended width of the layout version.

Returns:

  • (Integer)

    the intended width of the layout version



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

attribute :width