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

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

Overview

Note:

This class is only used within the context of the LWS::DigitalSignage::Player::Component class.

The player component part 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

#componentPlayer::Component

Returns the player component that uses the part.

Returns:



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

belongs_to :component, class_name: "LWS::DigitalSignage::Player::Component",
uri: "player/components/:id"

#component_idInteger

Returns the ID of the player component that uses the part.

Returns:

  • (Integer)

    the ID of the player component that uses the part



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

attribute :component_id

#playerPlayer?

Returns the player the component part is used in.

Returns:

  • (Player, nil)

    the player the component part is used in



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

belongs_to :player, class_name: "LWS::DigitalSignage::Player"

#player_idInteger?

Returns the ID of the player the component part is used in.

Returns:

  • (Integer, nil)

    the ID of the player the component part is used in



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

attribute :player_id

#serial_numberString

Returns the serial number of the player component part.

Returns:

  • (String)

    the serial number of the player component part



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

attribute :serial_number