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.
761 |
# File 'lib/lws/apps/digital_signage.rb', line 761 attribute :created_at |
#description ⇒ String?
Returns the description of the player component.
729 |
# File 'lib/lws/apps/digital_signage.rb', line 729 attribute :description |
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the player component.
725 |
# File 'lib/lws/apps/digital_signage.rb', line 725 attribute :id |
#models ⇒ Array<Player::Model>
Returns the player models that use the component.
733 734 |
# File 'lib/lws/apps/digital_signage.rb', line 733 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.
738 |
# File 'lib/lws/apps/digital_signage.rb', line 738 attribute :name |
#parts ⇒ Array<Player::Component::Part>
Returns the parts the component is made out of.
742 743 |
# File 'lib/lws/apps/digital_signage.rb', line 742 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.
747 |
# File 'lib/lws/apps/digital_signage.rb', line 747 attribute :slug |
#supplier ⇒ LWS::Auth::Company
Returns the supplier of the component part.
751 752 753 |
# File 'lib/lws/apps/digital_signage.rb', line 751 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.
757 |
# File 'lib/lws/apps/digital_signage.rb', line 757 attribute :supplier_id |
#updated_at ⇒ String (readonly)
Returns the timestamp of when the player component was last updated.
765 |
# File 'lib/lws/apps/digital_signage.rb', line 765 attribute :updated_at |