Class: LWS::DigitalSignage::Player::Component

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

Overview

The player component class

Defined Under Namespace

Classes: Part

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#dig, #reload, #rollback, #save

Instance Attribute Details

#descriptionString?

Returns the description of the player component.

Returns:

  • (String, nil)

    the description of the player component



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

attribute :description

#modelsArray<Player::Model>

Returns the player models that use the component.

Returns:

  • (Array<Player::Model>)

    the player models that use the component



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

has_many :models, class_name: "LWS::DigitalSignage::Player::Model",
uri: "player/components/:component_id/models(/:id)"

#nameString

Returns the name of the player component.

Returns:

  • (String)

    the name of the player component



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

attribute :name

#partsArray<Player::Component::Part>

Returns the parts the component is made out of.

Returns:



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

has_many :parts, class_name: "LWS::DigitalSignage::Player::Component::Part",
uri: "player/components/:component_id/parts(/:id)"

#slugString (readonly)

Returns the slug(ified name) of the player component.

Returns:

  • (String)

    the slug(ified name) of the player component



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

attribute :slug

#supplierLWS::Auth::Company

Returns the supplier of the component part.

Returns:



882
883
884
# File 'lib/lws/apps/digital_signage.rb', line 882

belongs_to :supplier, class_name: "LWS::Auth::Company",
foreign_key: :supplier_id,
uri: "companies/:id"

#supplier_idInteger

Returns the ID of the supplier of the component part.

Returns:

  • (Integer)

    the ID of the supplier of the component part



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

attribute :supplier_id