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:



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

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



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

attribute :component_id

#playerPlayer?

Returns the player the component part is used in.

Returns:

  • (Player, nil)

    the player the component part is used in



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

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



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

attribute :player_id

#serial_numberString

Returns the serial number of the player component part.

Returns:

  • (String)

    the serial number of the player component part



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

attribute :serial_number