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.
-
#recent_os ⇒ Boolean
Whether the OS of the player is recent.
-
#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.
831 |
# File 'lib/lws/apps/digital_signage.rb', line 831 belongs_to :channel, class_name: "LWS::DigitalSignage::Channel" |
#channel_id ⇒ Integer
Returns the ID of the channel of the player.
835 |
# File 'lib/lws/apps/digital_signage.rb', line 835 attribute :channel_id |
#company ⇒ LWS::Auth::Company
Returns the company the player belongs to.
839 |
# File 'lib/lws/apps/digital_signage.rb', line 839 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Integer
Returns the ID of the company the player belongs to.
843 |
# File 'lib/lws/apps/digital_signage.rb', line 843 attribute :company_id |
#components ⇒ Array<Player::Component>
Returns the components of the player.
847 |
# File 'lib/lws/apps/digital_signage.rb', line 847 has_many :components, class_name: "LWS::DigitalSignage::Player::Component" |
#configuration ⇒ Player::Configuration
Returns the configuration of the player.
851 852 |
# File 'lib/lws/apps/digital_signage.rb', line 851 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.
856 |
# File 'lib/lws/apps/digital_signage.rb', line 856 attribute :configuration_id |
#feedback ⇒ Hash{String=>String}
Returns a mapping of player feedback key/values.
860 |
# File 'lib/lws/apps/digital_signage.rb', line 860 attribute :feedback |
#health_percentage ⇒ Fixnum (readonly)
Returns the health of the player (percentage).
864 |
# File 'lib/lws/apps/digital_signage.rb', line 864 attribute :health_percentage |
#hostname ⇒ String (readonly)
Returns the hostname used by the player (for DHCP for example).
868 |
# File 'lib/lws/apps/digital_signage.rb', line 868 attribute :hostname |
#logs ⇒ Array<Player::Log>
Returns the logs of the player.
872 |
# File 'lib/lws/apps/digital_signage.rb', line 872 has_many :logs, class_name: "LWS::DigitalSignage::Player::Log" |
#mac_lan ⇒ String?
Returns the MAC address of the LAN interface of the player.
876 |
# File 'lib/lws/apps/digital_signage.rb', line 876 attribute :mac_lan |
#mac_wifi ⇒ String?
Returns the MAC address of the Wi-Fi interface of the player.
880 |
# File 'lib/lws/apps/digital_signage.rb', line 880 attribute :mac_wifi |
#model ⇒ Player::Model
Returns the model of the player.
884 885 |
# File 'lib/lws/apps/digital_signage.rb', line 884 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.
889 |
# File 'lib/lws/apps/digital_signage.rb', line 889 attribute :model_id |
#name ⇒ String
Returns the name of the player.
893 |
# File 'lib/lws/apps/digital_signage.rb', line 893 attribute :name |
#notifications ⇒ Array<Player::Notification>
Returns the notifications for the player.
897 |
# File 'lib/lws/apps/digital_signage.rb', line 897 has_many :notifications, class_name: "LWS::DigitalSignage::Player::Notification" |
#operation_hours ⇒ String? (readonly)
Returns the number of hours the player has been operational.
901 |
# File 'lib/lws/apps/digital_signage.rb', line 901 attribute :operation_hours |
#operational_since ⇒ String? (readonly)
Returns the date/time when the player became operational for the first time.
906 |
# File 'lib/lws/apps/digital_signage.rb', line 906 attribute :operational_since |
#os_release_version ⇒ String?
Returns the OS version the player is using (if known).
910 |
# File 'lib/lws/apps/digital_signage.rb', line 910 attribute :os_release_version |
#parts ⇒ Array<Player::Component::Part>
Returns the parts of the player.
914 |
# File 'lib/lws/apps/digital_signage.rb', line 914 has_many :parts, class_name: "LWS::DigitalSignage::Player::Component::Part" |
#recent_os ⇒ Boolean
Returns whether the OS of the player is recent.
918 |
# File 'lib/lws/apps/digital_signage.rb', line 918 attribute :recent_os |
#registration_locked ⇒ Boolean
Returns whether registarion is locked for the player.
922 |
# File 'lib/lws/apps/digital_signage.rb', line 922 attribute :registration_locked |
#release_channel ⇒ Player::Os::ReleaseChannel
Returns the player OS release channel used by the player.
927 928 |
# File 'lib/lws/apps/digital_signage.rb', line 927 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.
933 |
# File 'lib/lws/apps/digital_signage.rb', line 933 attribute :release_channel_id |
#requests ⇒ Array<Player::Request>
Returns the requests for the player.
937 |
# File 'lib/lws/apps/digital_signage.rb', line 937 has_many :requests, class_name: "LWS::DigitalSignage::Player::Request" |
#screenshots ⇒ Array<Player::Screenshot>
Returns the screenshots of the player.
941 |
# File 'lib/lws/apps/digital_signage.rb', line 941 has_many :screenshots, class_name: "LWS::DigitalSignage::Player::Screenshot" |
#serial_number ⇒ String (readonly)
Returns the serial number of the player.
945 |
# File 'lib/lws/apps/digital_signage.rb', line 945 attribute :serial_number |
#service ⇒ Boolean
Returns whether the player is being serviced/is in service.
949 |
# File 'lib/lws/apps/digital_signage.rb', line 949 attribute :service |
#status ⇒ "unknown", ... (readonly)
Returns the player status.
953 |
# File 'lib/lws/apps/digital_signage.rb', line 953 attribute :status |
#status_reason ⇒ "unknown", ... (readonly)
Returns the reason for the current player status.
958 |
# File 'lib/lws/apps/digital_signage.rb', line 958 attribute :status_reason |
#status_updated_at ⇒ String (readonly)
Returns the date/time the status was last updated.
962 |
# File 'lib/lws/apps/digital_signage.rb', line 962 attribute :status_updated_at |
#tags ⇒ Array<Player::Tag>
Returns the tags of the player.
966 |
# File 'lib/lws/apps/digital_signage.rb', line 966 has_many :tags, class_name: "LWS::DigitalSignage::Player::Tag" |