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



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

attribute :created_at

#descriptionString?

Returns the description of the player component.

Returns:

  • (String, nil)

    the description of the player component



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

attribute :description

#idFixnum (readonly)

Returns the (unique) ID of the player component.

Returns:

  • (Fixnum)

    the (unique) ID of the player component



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

attribute :id

#modelsArray<Player::Model>

Returns the player models that use the component.

Returns:

  • (Array<Player::Model>)

    the player models that use the component



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

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

#nameString

Returns the name of the player component.

Returns:

  • (String)

    the name of the player component



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

attribute :name

#partsArray<Player::Component::Part>

Returns the parts the component is made out of.

Returns:



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

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

#slugString (readonly)

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

Returns:

  • (String)

    the slug(ified name) of the player component



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

attribute :slug

#supplierLWS::Auth::Company

Returns the supplier of the component part.

Returns:



730
731
732
# File 'lib/lws/apps/digital_signage.rb', line 730

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



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

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



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

attribute :updated_at