Class: LWS::DigitalSignage::Player::Request
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::DigitalSignage::Player::Request
- Defined in:
- lib/lws/apps/digital_signage.rb
Overview
This class is only used within the context of the LWS::DigitalSignage::Player class.
The player request class
Instance Attribute Summary collapse
-
#action ⇒ "unknown", ...
The player request action.
-
#argument ⇒ String?
The optional argument for the player request.
-
#feedback ⇒ Player::Feedback?
This field should be set once the action has been processed (see #processed) and the action is “send_feedback”.
-
#feedback_id ⇒ Integer?
The ID of the player feedback as a response to the action request “send_status”.
-
#log ⇒ Player::Log?
This field should be set once the action has been processed (see #processed) and the action is “send_logs”.
-
#log_id ⇒ Integer?
The ID of the player log as a response to the action request “send_logs”.
-
#player ⇒ Player
The player the request is sent to.
-
#player_id ⇒ Integer
The ID of the player the request is sent to.
-
#processed ⇒ Boolean
Whether the request has been processed by the player.
-
#response ⇒ String?
The player request response text (if the response is not a specific object).
-
#screenshot ⇒ Player::Screenshot?
This field should be set once the action has been processed (see #processed) and the action is “send_screenshot”.
-
#screenshot_id ⇒ Integer?
The ID of the player screenshot as a response to the action request “send_screenshot”.
Attributes inherited from Generic::Model
#created_at, #id, #updated_at, #url, #url_html
Method Summary
Methods inherited from Generic::Model
#dig, #reload, #rollback, #save
Instance Attribute Details
#action ⇒ "unknown", ...
Returns the player request action.
1559 |
# File 'lib/lws/apps/digital_signage.rb', line 1559 attribute :action |
#argument ⇒ String?
Returns the optional argument for the player request.
1563 |
# File 'lib/lws/apps/digital_signage.rb', line 1563 attribute :argument |
#feedback ⇒ Player::Feedback?
This field should be set once the action has been processed (see #processed) and the action is “send_feedback”.
1571 1572 |
# File 'lib/lws/apps/digital_signage.rb', line 1571 belongs_to :feedback, class_name: "LWS::DigitalSignage::Player::Feedback", uri: "players/:player_id/feedbacks/:id" |
#feedback_id ⇒ Integer?
Returns the ID of the player feedback as a response to the action request “send_status”.
1577 |
# File 'lib/lws/apps/digital_signage.rb', line 1577 attribute :feedback_id |
#log ⇒ Player::Log?
This field should be set once the action has been processed (see #processed) and the action is “send_logs”.
1585 1586 |
# File 'lib/lws/apps/digital_signage.rb', line 1585 belongs_to :log, class_name: "LWS::DigitalSignage::Player::Log", uri: "players/:player_id/logs/:id" |
#log_id ⇒ Integer?
Returns the ID of the player log as a response to the action request “send_logs”.
1591 |
# File 'lib/lws/apps/digital_signage.rb', line 1591 attribute :log_id |
#player ⇒ Player
Returns the player the request is sent to.
1595 |
# File 'lib/lws/apps/digital_signage.rb', line 1595 belongs_to :player, class_name: "LWS::DigitalSignage::Player" |
#player_id ⇒ Integer
Returns the ID of the player the request is sent to.
1599 |
# File 'lib/lws/apps/digital_signage.rb', line 1599 attribute :player_id |
#processed ⇒ Boolean
Returns whether the request has been processed by the player.
1603 |
# File 'lib/lws/apps/digital_signage.rb', line 1603 attribute :processed |
#response ⇒ String?
Returns the player request response text (if the response is not a specific object).
1608 |
# File 'lib/lws/apps/digital_signage.rb', line 1608 attribute :response |
#screenshot ⇒ Player::Screenshot?
This field should be set once the action has been processed (see #processed) and the action is “send_screenshot”.
1616 1617 |
# File 'lib/lws/apps/digital_signage.rb', line 1616 belongs_to :screenshot, class_name: "LWS::DigitalSignage::Player::Screenshot", uri: "players/:player_id/screenshots/:id" |
#screenshot_id ⇒ Integer?
Returns the ID of the player screenshot as a response to the action request “send_screenshot”.
1622 |
# File 'lib/lws/apps/digital_signage.rb', line 1622 attribute :screenshot_id |