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

Instance Attribute Details

#created_atString (readonly)

Returns the timestamp of when the player component was created.

Returns:

  • (String)

    the timestamp of when the player component was created



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

attribute :created_at

#descriptionString?

Returns the description of the player component.

Returns:

  • (String, nil)

    the description of the player component



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

attribute :description

#idFixnum (readonly)

Returns the (unique) ID of the player component.

Returns:

  • (Fixnum)

    the (unique) ID of the player component



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

attribute :id

#modelsArray<Player::Model>

Returns the player models that use the component.

Returns:

  • (Array<Player::Model>)

    the player models that use the component



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

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



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

attribute :name

#partsArray<Player::Component::Part>

Returns the parts the component is made out of.

Returns:



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

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



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

attribute :slug

#supplierLWS::Auth::Company

Returns the supplier of the component part.

Returns:



751
752
753
# File 'lib/lws/apps/digital_signage.rb', line 751

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

#supplier_idFixnum

Returns the ID of the supplier of the component part.

Returns:

  • (Fixnum)

    the ID of the supplier of the component part



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

attribute :supplier_id

#updated_atString (readonly)

Returns the timestamp of when the player component was last updated.

Returns:

  • (String)

    the timestamp of when the player component was last updated



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

attribute :updated_at