Class: LWS::DigitalSignage::Layout::Category

Inherits:
Generic::Model
  • Object
show all
Defined in:
lib/lws/apps/digital_signage.rb

Overview

The layout category 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

#descriptionString?

Returns the description of the layout category.

Returns:

  • (String, nil)

    the description of the layout category



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

attribute :description

#layoutsArray<Layout>

Returns the layouts that are associated with the category.

Returns:

  • (Array<Layout>)

    the layouts that are associated with the category



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

has_many :layouts, class_name: "LWS::DigitalSignage::Layout",
uri: "layout/categories/:category_id/layouts(/:id)"

#nameString

Returns the name of the layout category.

Returns:

  • (String)

    the name of the layout category



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

attribute :name

#translated_nameString

Returns the translated name of the layout category.

Returns:

  • (String)

    the translated name of the layout category



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

attribute :name