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.
-
#created_at ⇒ String
readonly
The timestamp of when the player request was created.
-
#feedback ⇒ Player::Feedback?
This field should be set once the action has been processed (see #processed) and the action is “send_feedback”.
-
#feedback_id ⇒ Fixnum?
The ID of the player feedback as a response to the action request “send_status”.
-
#id ⇒ Fixnum
readonly
The (unique) ID of the player request.
-
#log ⇒ Player::Log?
This field should be set once the action has been processed (see #processed) and the action is “send_logs”.
-
#log_id ⇒ Fixnum?
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 ⇒ Fixnum
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 ⇒ Fixnum?
The ID of the player screenshot as a response to the action request “send_screenshot”.
-
#updated_at ⇒ String
readonly
The timestamp of when the player request was last updated.
Instance Attribute Details
#action ⇒ "unknown", ...
Returns the player request action.
1648 |
# File 'lib/lws/apps/digital_signage.rb', line 1648 attribute :action |
#argument ⇒ String?
Returns the optional argument for the player request.
1652 |
# File 'lib/lws/apps/digital_signage.rb', line 1652 attribute :argument |
#created_at ⇒ String (readonly)
Returns the timestamp of when the player request was created.
1715 |
# File 'lib/lws/apps/digital_signage.rb', line 1715 attribute :created_at |
#feedback ⇒ Player::Feedback?
This field should be set once the action has been processed (see #processed) and the action is “send_feedback”.
1660 1661 |
# File 'lib/lws/apps/digital_signage.rb', line 1660 belongs_to :feedback, class_name: "LWS::DigitalSignage::Player::Feedback", uri: "players/:player_id/feedbacks/:id" |
#feedback_id ⇒ Fixnum?
Returns the ID of the player feedback as a response to the action request “send_status”.
1666 |
# File 'lib/lws/apps/digital_signage.rb', line 1666 attribute :feedback_id |
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the player request.
1641 |
# File 'lib/lws/apps/digital_signage.rb', line 1641 attribute :id |
#log ⇒ Player::Log?
This field should be set once the action has been processed (see #processed) and the action is “send_logs”.
1674 1675 |
# File 'lib/lws/apps/digital_signage.rb', line 1674 belongs_to :log, class_name: "LWS::DigitalSignage::Player::Log", uri: "players/:player_id/logs/:id" |
#log_id ⇒ Fixnum?
Returns the ID of the player log as a response to the action request “send_logs”.
1680 |
# File 'lib/lws/apps/digital_signage.rb', line 1680 attribute :log_id |
#player ⇒ Player
Returns the player the request is sent to.
1684 |
# File 'lib/lws/apps/digital_signage.rb', line 1684 belongs_to :player, class_name: "LWS::DigitalSignage::Player" |
#player_id ⇒ Fixnum
Returns the ID of the player the request is sent to.
1688 |
# File 'lib/lws/apps/digital_signage.rb', line 1688 attribute :player_id |
#processed ⇒ Boolean
Returns whether the request has been processed by the player.
1692 |
# File 'lib/lws/apps/digital_signage.rb', line 1692 attribute :processed |
#response ⇒ String?
Returns the player request response text (if the response is not a specific object).
1697 |
# File 'lib/lws/apps/digital_signage.rb', line 1697 attribute :response |
#screenshot ⇒ Player::Screenshot?
This field should be set once the action has been processed (see #processed) and the action is “send_screenshot”.
1705 1706 |
# File 'lib/lws/apps/digital_signage.rb', line 1705 belongs_to :screenshot, class_name: "LWS::DigitalSignage::Player::Screenshot", uri: "players/:player_id/screenshots/:id" |
#screenshot_id ⇒ Fixnum?
Returns the ID of the player screenshot as a response to the action request “send_screenshot”.
1711 |
# File 'lib/lws/apps/digital_signage.rb', line 1711 attribute :screenshot_id |
#updated_at ⇒ String (readonly)
Returns the timestamp of when the player request was last updated.
1719 |
# File 'lib/lws/apps/digital_signage.rb', line 1719 attribute :updated_at |