Class: Assistant::TechnicalSupport::CaseReplay::Result
- Inherits:
-
Data
- Object
- Data
- Assistant::TechnicalSupport::CaseReplay::Result
- Defined in:
- app/services/assistant/technical_support/case_replay/result.rb
Instance Attribute Summary collapse
-
#article_review_proposals ⇒ Object
readonly
Returns the value of attribute article_review_proposals.
-
#assessment ⇒ Object
readonly
Returns the value of attribute assessment.
-
#case_number ⇒ Object
readonly
Returns the value of attribute case_number.
-
#citation_urls ⇒ Object
readonly
Returns the value of attribute citation_urls.
-
#citations_grounded ⇒ Object
readonly
Returns the value of attribute citations_grounded.
-
#conversation_id ⇒ Object
readonly
Returns the value of attribute conversation_id.
-
#episode ⇒ Object
readonly
Returns the value of attribute episode.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#evidence_blockers ⇒ Object
readonly
Returns the value of attribute evidence_blockers.
-
#evidence_chars ⇒ Object
readonly
Returns the value of attribute evidence_chars.
-
#evidence_coverage ⇒ Object
readonly
Returns the value of attribute evidence_coverage.
-
#evidence_event_count ⇒ Object
readonly
Returns the value of attribute evidence_event_count.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#support_case_id ⇒ Object
readonly
Returns the value of attribute support_case_id.
Instance Method Summary collapse
-
#evaluated? ⇒ Boolean
A failed assessment is a completed evaluation; an operational failure without an assessment and an invalid benchmark are not.
- #failed? ⇒ Boolean
-
#initialize(status:, **attributes) ⇒ Result
constructor
A new instance of Result.
- #passed? ⇒ Boolean
- #skipped? ⇒ Boolean
Constructor Details
#initialize(status:, **attributes) ⇒ Result
Returns a new instance of Result.
52 53 54 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 52 def initialize(status:, **attributes) super(status:, **RESULT_DEFAULT_ATTRIBUTES.merge(attributes)) end |
Instance Attribute Details
#article_review_proposals ⇒ Object (readonly)
Returns the value of attribute article_review_proposals
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def article_review_proposals @article_review_proposals end |
#assessment ⇒ Object (readonly)
Returns the value of attribute assessment
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def assessment @assessment end |
#case_number ⇒ Object (readonly)
Returns the value of attribute case_number
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def case_number @case_number end |
#citation_urls ⇒ Object (readonly)
Returns the value of attribute citation_urls
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def citation_urls @citation_urls end |
#citations_grounded ⇒ Object (readonly)
Returns the value of attribute citations_grounded
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def citations_grounded @citations_grounded end |
#conversation_id ⇒ Object (readonly)
Returns the value of attribute conversation_id
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def conversation_id @conversation_id end |
#episode ⇒ Object (readonly)
Returns the value of attribute episode
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def episode @episode end |
#error ⇒ Object (readonly)
Returns the value of attribute error
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def error @error end |
#evidence_blockers ⇒ Object (readonly)
Returns the value of attribute evidence_blockers
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def evidence_blockers @evidence_blockers end |
#evidence_chars ⇒ Object (readonly)
Returns the value of attribute evidence_chars
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def evidence_chars @evidence_chars end |
#evidence_coverage ⇒ Object (readonly)
Returns the value of attribute evidence_coverage
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def evidence_coverage @evidence_coverage end |
#evidence_event_count ⇒ Object (readonly)
Returns the value of attribute evidence_event_count
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def evidence_event_count @evidence_event_count end |
#status ⇒ Object (readonly)
Returns the value of attribute status
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def status @status end |
#support_case_id ⇒ Object (readonly)
Returns the value of attribute support_case_id
21 22 23 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 21 def support_case_id @support_case_id end |
Instance Method Details
#evaluated? ⇒ Boolean
A failed assessment is a completed evaluation; an operational failure
without an assessment and an invalid benchmark are not.
62 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 62 def evaluated? = passed? || (failed? && assessment.present?) |
#failed? ⇒ Boolean
57 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 57 def failed? = status == 'failed' |
#passed? ⇒ Boolean
56 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 56 def passed? = status == 'passed' |
#skipped? ⇒ Boolean
58 |
# File 'app/services/assistant/technical_support/case_replay/result.rb', line 58 def skipped? = status == 'skipped' |