Class: LWS::DigitalSignage::Player::Component
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::DigitalSignage::Player::Component
- Defined in:
- lib/lws/apps/digital_signage.rb
Overview
The player component class
Defined Under Namespace
Classes: Part
Instance Attribute Summary collapse
-
#description ⇒ String?
The description of the player component.
-
#model_ids ⇒ Array<Integer>
The IDs of the player models that use the component.
-
#models ⇒ Array<Player::Model>
The player models that use the component.
-
#name ⇒ String
The name of the player component.
-
#part_ids ⇒ Array<Integer>
The IDs of the parts the component is made out of.
-
#parts ⇒ Array<Player::Component::Part>
The parts the component is made out of.
-
#slug ⇒ String
readonly
The slug(ified name) of the player component.
-
#supplier ⇒ LWS::Auth::Company
The supplier of the component part.
-
#supplier_id ⇒ Integer
The ID of the supplier of the component part.
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
#description ⇒ String?
Returns the description of the player component.
1139 |
# File 'lib/lws/apps/digital_signage.rb', line 1139 attribute :description |
#model_ids ⇒ Array<Integer>
Returns the IDs of the player models that use the component.
1144 |
# File 'lib/lws/apps/digital_signage.rb', line 1144 attribute :model_ids |
#models ⇒ Array<Player::Model>
Returns the player models that use the component.
1148 1149 |
# File 'lib/lws/apps/digital_signage.rb', line 1148 has_many :models, class_name: "LWS::DigitalSignage::Player::Model", uri: "player/components/:component_id/models(/:id)" |
#name ⇒ String
Returns the name of the player component.
1153 |
# File 'lib/lws/apps/digital_signage.rb', line 1153 attribute :name |
#part_ids ⇒ Array<Integer>
Returns the IDs of the parts the component is made out of.
1157 |
# File 'lib/lws/apps/digital_signage.rb', line 1157 attribute :part_ids |
#parts ⇒ Array<Player::Component::Part>
Returns the parts the component is made out of.
1161 1162 |
# File 'lib/lws/apps/digital_signage.rb', line 1161 has_many :parts, class_name: "LWS::DigitalSignage::Player::Component::Part", uri: "player/components/:component_id/parts(/:id)" |
#slug ⇒ String (readonly)
Returns the slug(ified name) of the player component.
1166 |
# File 'lib/lws/apps/digital_signage.rb', line 1166 attribute :slug |
#supplier ⇒ LWS::Auth::Company
Returns the supplier of the component part.
1170 1171 1172 |
# File 'lib/lws/apps/digital_signage.rb', line 1170 belongs_to :supplier, class_name: "LWS::Auth::Company", foreign_key: :supplier_id, uri: "companies/:id" |
#supplier_id ⇒ Integer
Returns the ID of the supplier of the component part.
1176 |
# File 'lib/lws/apps/digital_signage.rb', line 1176 attribute :supplier_id |