Class: LWS::DigitalSignage::Layout::Element
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::DigitalSignage::Layout::Element
- Defined in:
- lib/lws/apps/digital_signage.rb
Overview
This class is only used within the context of the Version class.
The layout element class
Defined Under Namespace
Classes: Customizable, Property
Instance Attribute Summary collapse
-
#asset_storage_ids ⇒ Array<String>
The storage IDs of the assets of the layout element.
-
#asset_urls ⇒ Array<Hash{String => String}>
This is a list of mappings of the asset filename (key “filename”) to the asset URL (key “url”).
-
#created_at ⇒ String
readonly
The timestamp of when the layout element was created.
-
#customizables ⇒ Array<Layout::Element::Customizable>
The customizable properties of the layout element.
-
#id ⇒ Integer
readonly
The (unique) ID of the layout element.
-
#index ⇒ Integer?
The index of the element within the list of layout elements of the associated layout version.
-
#klass ⇒ String
The class of the layout element.
-
#parent ⇒ Layout?
The parent of the layout element.
-
#parent_id ⇒ Integer?
The ID of the parent of the layout element.
-
#properties ⇒ Array<Layout::Element::Property>
The properties of the layout element.
-
#updated_at ⇒ String
readonly
The timestamp of when the layout element was last updated.
-
#version ⇒ Layout::Verion
The layout version that contains the element.
Attributes inherited from Generic::Model
Method Summary
Methods inherited from Generic::Model
Instance Attribute Details
#asset_storage_ids ⇒ Array<String>
Returns the storage IDs of the assets of the layout element.
617 |
# File 'lib/lws/apps/digital_signage.rb', line 617 attribute :asset_storage_ids |
#asset_urls ⇒ Array<Hash{String => String}>
This is a list of mappings of the asset filename (key “filename”) to the asset URL (key “url”).
624 |
# File 'lib/lws/apps/digital_signage.rb', line 624 attribute :asset_urls |
#created_at ⇒ String (readonly)
Returns the timestamp of when the layout element was created.
663 |
# File 'lib/lws/apps/digital_signage.rb', line 663 attribute :created_at |
#customizables ⇒ Array<Layout::Element::Customizable>
Returns the customizable properties of the layout element.
629 |
# File 'lib/lws/apps/digital_signage.rb', line 629 has_many :customizables, class_name: "LWS::DigitalSignage::Layout::Element::Customizable" |
#id ⇒ Integer (readonly)
Returns the (unique) ID of the layout element.
613 |
# File 'lib/lws/apps/digital_signage.rb', line 613 attribute :id |
#index ⇒ Integer?
Returns the index of the element within the list of layout elements of the associated layout version.
634 |
# File 'lib/lws/apps/digital_signage.rb', line 634 attribute :index |
#klass ⇒ String
Returns the class of the layout element.
638 |
# File 'lib/lws/apps/digital_signage.rb', line 638 attribute :klass |
#parent ⇒ Layout?
Returns the parent of the layout element.
643 644 |
# File 'lib/lws/apps/digital_signage.rb', line 643 belongs_to :parent, class_name: "LWS::DigitalSignage::Layout::Element", foreign_key: :parent_id |
#parent_id ⇒ Integer?
Returns the ID of the parent of the layout element.
648 |
# File 'lib/lws/apps/digital_signage.rb', line 648 attribute :parent_id |
#properties ⇒ Array<Layout::Element::Property>
Returns the properties of the layout element.
653 |
# File 'lib/lws/apps/digital_signage.rb', line 653 has_many :properties, class_name: "LWS::DigitalSignage::Layout::Element::Property" |
#updated_at ⇒ String (readonly)
Returns the timestamp of when the layout element was last updated.
668 |
# File 'lib/lws/apps/digital_signage.rb', line 668 attribute :updated_at |
#version ⇒ Layout::Verion
Returns the layout version that contains the element.
658 659 |
# File 'lib/lws/apps/digital_signage.rb', line 658 belongs_to :version, class_name: "LWS::DigitalSignage::Layout::Version", foreign_key: :layout_version_id |