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

#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 category was created.

Returns:

  • (String)

    the timestamp of when the layout category was created



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

attribute :created_at

#descriptionString?

Returns the description of the layout category.

Returns:

  • (String, nil)

    the description of the layout category



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

attribute :description

#idInteger (readonly)

Returns the (unique) ID of the layout category.

Returns:

  • (Integer)

    the (unique) ID of the layout category



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

attribute :id

#layoutsArray<Layout>

Returns the layouts that are associated with the category.

Returns:

  • (Array<Layout>)

    the layouts that are associated with the category



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

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



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

attribute :name

#updated_atString (readonly)

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

Returns:

  • (String)

    the timestamp of when the layout category was last updated



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

attribute :updated_at