Class: LWS::DigitalSignage::Player
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::DigitalSignage::Player
- Defined in:
- lib/lws/apps/digital_signage.rb
Overview
The player class
Defined Under Namespace
Modules: Os Classes: Component, Configuration, Log, Model, Notification, PredefinedConfiguration, Request, Screenshot, Tag
Instance Attribute Summary collapse
-
#channel ⇒ Channel
The channel of the player.
-
#channel_id ⇒ Integer
The ID of the channel of the player.
-
#company ⇒ LWS::Auth::Company
The company the player belongs to.
-
#company_id ⇒ Integer
The ID of the company the player belongs to.
-
#components ⇒ Array<Player::Component>
The components of the player.
-
#configuration ⇒ Player::Configuration
The configuration of the player.
-
#configuration_id ⇒ Integer
The ID of the configuration of the player.
-
#feedback ⇒ Hash{String=>String}
A mapping of player feedback key/values.
-
#health_percentage ⇒ Fixnum
readonly
The health of the player (percentage).
-
#hostname ⇒ String
readonly
The hostname used by the player (for DHCP for example).
-
#logs ⇒ Array<Player::Log>
The logs of the player.
-
#mac_lan ⇒ String?
The MAC address of the LAN interface of the player.
-
#mac_wifi ⇒ String?
The MAC address of the Wi-Fi interface of the player.
-
#model ⇒ Player::Model
The model of the player.
-
#model_id ⇒ Integer
The ID of the model of the player.
-
#name ⇒ String
The name of the player.
-
#notifications ⇒ Array<Player::Notification>
The notifications for the player.
-
#operation_hours ⇒ String?
readonly
The number of hours the player has been operational.
-
#operational_since ⇒ String?
readonly
The date/time when the player became operational for the first time.
-
#os_release_version ⇒ String?
The OS version the player is using (if known).
-
#parts ⇒ Array<Player::Component::Part>
The parts of the player.
-
#registration_locked ⇒ Boolean
Whether registarion is locked for the player.
-
#release_channel ⇒ Player::Os::ReleaseChannel
The player OS release channel used by the player.
-
#release_channel_id ⇒ Integer
The ID of the player OS release channel used by the player.
-
#requests ⇒ Array<Player::Request>
The requests for the player.
-
#screenshots ⇒ Array<Player::Screenshot>
The screenshots of the player.
-
#serial_number ⇒ String
readonly
The serial number of the player.
-
#service ⇒ Boolean
Whether the player is being serviced/is in service.
-
#status ⇒ "unknown", ...
readonly
The player status.
-
#status_reason ⇒ "unknown", ...
readonly
The reason for the current player status.
-
#status_updated_at ⇒ String
readonly
The date/time the status was last updated.
-
#tags ⇒ Array<Player::Tag>
The tags of the player.
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
#channel ⇒ Channel
Returns the channel of the player.
810 |
# File 'lib/lws/apps/digital_signage.rb', line 810 belongs_to :channel, class_name: "LWS::DigitalSignage::Channel" |
#channel_id ⇒ Integer
Returns the ID of the channel of the player.
814 |
# File 'lib/lws/apps/digital_signage.rb', line 814 attribute :channel_id |
#company ⇒ LWS::Auth::Company
Returns the company the player belongs to.
818 |
# File 'lib/lws/apps/digital_signage.rb', line 818 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Integer
Returns the ID of the company the player belongs to.
822 |
# File 'lib/lws/apps/digital_signage.rb', line 822 attribute :company_id |
#components ⇒ Array<Player::Component>
Returns the components of the player.
826 |
# File 'lib/lws/apps/digital_signage.rb', line 826 has_many :components, class_name: "LWS::DigitalSignage::Player::Component" |
#configuration ⇒ Player::Configuration
Returns the configuration of the player.
830 831 |
# File 'lib/lws/apps/digital_signage.rb', line 830 belongs_to :configuration, class_name: "LWS::DigitalSignage::Player::Configuration", uri: "player/configurations/:id" |
#configuration_id ⇒ Integer
Returns the ID of the configuration of the player.
835 |
# File 'lib/lws/apps/digital_signage.rb', line 835 attribute :configuration_id |
#feedback ⇒ Hash{String=>String}
Returns a mapping of player feedback key/values.
839 |
# File 'lib/lws/apps/digital_signage.rb', line 839 attribute :feedback |
#health_percentage ⇒ Fixnum (readonly)
Returns the health of the player (percentage).
843 |
# File 'lib/lws/apps/digital_signage.rb', line 843 attribute :health_percentage |
#hostname ⇒ String (readonly)
Returns the hostname used by the player (for DHCP for example).
847 |
# File 'lib/lws/apps/digital_signage.rb', line 847 attribute :hostname |
#logs ⇒ Array<Player::Log>
Returns the logs of the player.
851 |
# File 'lib/lws/apps/digital_signage.rb', line 851 has_many :logs, class_name: "LWS::DigitalSignage::Player::Log" |
#mac_lan ⇒ String?
Returns the MAC address of the LAN interface of the player.
855 |
# File 'lib/lws/apps/digital_signage.rb', line 855 attribute :mac_lan |
#mac_wifi ⇒ String?
Returns the MAC address of the Wi-Fi interface of the player.
859 |
# File 'lib/lws/apps/digital_signage.rb', line 859 attribute :mac_wifi |
#model ⇒ Player::Model
Returns the model of the player.
863 864 |
# File 'lib/lws/apps/digital_signage.rb', line 863 belongs_to :model, class_name: "LWS::DigitalSignage::Player::Model", uri: "player/models/:id" |
#model_id ⇒ Integer
Returns the ID of the model of the player.
868 |
# File 'lib/lws/apps/digital_signage.rb', line 868 attribute :model_id |
#name ⇒ String
Returns the name of the player.
872 |
# File 'lib/lws/apps/digital_signage.rb', line 872 attribute :name |
#notifications ⇒ Array<Player::Notification>
Returns the notifications for the player.
876 |
# File 'lib/lws/apps/digital_signage.rb', line 876 has_many :notifications, class_name: "LWS::DigitalSignage::Player::Notification" |
#operation_hours ⇒ String? (readonly)
Returns the number of hours the player has been operational.
880 |
# File 'lib/lws/apps/digital_signage.rb', line 880 attribute :operation_hours |
#operational_since ⇒ String? (readonly)
Returns the date/time when the player became operational for the first time.
885 |
# File 'lib/lws/apps/digital_signage.rb', line 885 attribute :operational_since |
#os_release_version ⇒ String?
Returns the OS version the player is using (if known).
889 |
# File 'lib/lws/apps/digital_signage.rb', line 889 attribute :os_release_version |
#parts ⇒ Array<Player::Component::Part>
Returns the parts of the player.
893 |
# File 'lib/lws/apps/digital_signage.rb', line 893 has_many :parts, class_name: "LWS::DigitalSignage::Player::Component::Part" |
#registration_locked ⇒ Boolean
Returns whether registarion is locked for the player.
897 |
# File 'lib/lws/apps/digital_signage.rb', line 897 attribute :registration_locked |
#release_channel ⇒ Player::Os::ReleaseChannel
Returns the player OS release channel used by the player.
902 903 |
# File 'lib/lws/apps/digital_signage.rb', line 902 belongs_to :release_channel, class_name: "LWS::DigitalSignage::Player::Os::ReleaseChannel", uri: "player/os/release_channels/:id" |
#release_channel_id ⇒ Integer
Returns the ID of the player OS release channel used by the player.
908 |
# File 'lib/lws/apps/digital_signage.rb', line 908 attribute :release_channel_id |
#requests ⇒ Array<Player::Request>
Returns the requests for the player.
912 |
# File 'lib/lws/apps/digital_signage.rb', line 912 has_many :requests, class_name: "LWS::DigitalSignage::Player::Request" |
#screenshots ⇒ Array<Player::Screenshot>
Returns the screenshots of the player.
916 |
# File 'lib/lws/apps/digital_signage.rb', line 916 has_many :screenshots, class_name: "LWS::DigitalSignage::Player::Screenshot" |
#serial_number ⇒ String (readonly)
Returns the serial number of the player.
920 |
# File 'lib/lws/apps/digital_signage.rb', line 920 attribute :serial_number |
#service ⇒ Boolean
Returns whether the player is being serviced/is in service.
924 |
# File 'lib/lws/apps/digital_signage.rb', line 924 attribute :service |
#status ⇒ "unknown", ... (readonly)
Returns the player status.
928 |
# File 'lib/lws/apps/digital_signage.rb', line 928 attribute :status |
#status_reason ⇒ "unknown", ... (readonly)
Returns the reason for the current player status.
933 |
# File 'lib/lws/apps/digital_signage.rb', line 933 attribute :status_reason |
#status_updated_at ⇒ String (readonly)
Returns the date/time the status was last updated.
937 |
# File 'lib/lws/apps/digital_signage.rb', line 937 attribute :status_updated_at |
#tags ⇒ Array<Player::Tag>
Returns the tags of the player.
941 |
# File 'lib/lws/apps/digital_signage.rb', line 941 has_many :tags, class_name: "LWS::DigitalSignage::Player::Tag" |