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?



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

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



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

attribute :archive_url

#elementsArray<Layout::Element>



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

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

#heightInteger



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

attribute :width

#layoutLayout



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

belongs_to :layout

#layout_idInteger



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

attribute :layout_id

#rotation"landscape", "portrait"



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

attribute :rotation

#rotation_angle0, 90



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

attribute :rotation_angle

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



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

attribute :status

#thumbnail_urlString?



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

attribute :thumbnail_url

#widthInteger



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

attribute :width