Class: Assistant::TechnicalSupport::CaseReplayAnalyzer::Result
- Inherits:
-
Data
- Object
- Data
- Assistant::TechnicalSupport::CaseReplayAnalyzer::Result
- Defined in:
- app/services/assistant/technical_support/case_replay_analyzer.rb
Overview
Immutable structured-analysis outcome.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#ineligible? ⇒ Boolean
Reports whether case evidence was unsuitable for replay.
-
#initialize(status: nil, data: {}, reason: nil) ⇒ Result
constructor
Builds a structured analysis result.
-
#success? ⇒ Boolean
Reports whether structured analysis completed successfully.
Constructor Details
#initialize(status: nil, data: {}, reason: nil) ⇒ Result
Builds a structured analysis result.
19 |
# File 'app/services/assistant/technical_support/case_replay_analyzer.rb', line 19 def initialize(status: nil, data: {}, reason: nil) = super |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data
13 14 15 |
# File 'app/services/assistant/technical_support/case_replay_analyzer.rb', line 13 def data @data end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
13 14 15 |
# File 'app/services/assistant/technical_support/case_replay_analyzer.rb', line 13 def reason @reason end |
#status ⇒ Object (readonly)
Returns the value of attribute status
13 14 15 |
# File 'app/services/assistant/technical_support/case_replay_analyzer.rb', line 13 def status @status end |
Instance Method Details
#ineligible? ⇒ Boolean
Reports whether case evidence was unsuitable for replay.
29 |
# File 'app/services/assistant/technical_support/case_replay_analyzer.rb', line 29 def ineligible? = status == :ineligible |
#success? ⇒ Boolean
Reports whether structured analysis completed successfully.
24 |
# File 'app/services/assistant/technical_support/case_replay_analyzer.rb', line 24 def success? = status == :success |