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
-
#created_at ⇒ String
readonly
The timestamp of when the player component was created.
-
#description ⇒ String?
The description of the player component.
-
#id ⇒ Fixnum
readonly
The (unique) ID of the player component.
-
#models ⇒ Array<Player::Model>
The player models that use the component.
-
#name ⇒ String
The name of the player component.
-
#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 ⇒ Fixnum
The ID of the supplier of the component part.
-
#updated_at ⇒ String
readonly
The timestamp of when the player component was last updated.
Instance Attribute Details
#created_at ⇒ String (readonly)
Returns the timestamp of when the player component was created.
740 |
# File 'lib/lws/apps/digital_signage.rb', line 740 attribute :created_at |
#description ⇒ String?
Returns the description of the player component.
708 |
# File 'lib/lws/apps/digital_signage.rb', line 708 attribute :description |
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the player component.
704 |
# File 'lib/lws/apps/digital_signage.rb', line 704 attribute :id |
#models ⇒ Array<Player::Model>
Returns 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" |
#name ⇒ String
Returns the name of the player component.
717 |
# File 'lib/lws/apps/digital_signage.rb', line 717 attribute :name |
#parts ⇒ Array<Player::Component::Part>
Returns the parts the component is made out of.
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" |
#slug ⇒ String (readonly)
Returns the slug(ified name) of the player component.
726 |
# File 'lib/lws/apps/digital_signage.rb', line 726 attribute :slug |
#supplier ⇒ LWS::Auth::Company
Returns the supplier of the component part.
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_id ⇒ Fixnum
Returns the ID of the supplier of the component part.
736 |
# File 'lib/lws/apps/digital_signage.rb', line 736 attribute :supplier_id |
#updated_at ⇒ String (readonly)
Returns the timestamp of when the player component was last updated.
744 |
# File 'lib/lws/apps/digital_signage.rb', line 744 attribute :updated_at |