Class: QcResultsUploadFactory::QcResultMessage
- Inherits:
-
Object
- Object
- QcResultsUploadFactory::QcResultMessage
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/qc_results_upload_factory.rb
Overview
A small wrapper class around QcResult for sending messages It will return the qc result along with a decision determined by who has made the decision
Instance Attribute Summary collapse
-
#decision_made_by ⇒ Object
Returns the value of attribute decision_made_by.
-
#qc_result ⇒ Object
Returns the value of attribute qc_result.
Instance Method Summary collapse
-
#qc_decision ⇒ QcResult
Returns the decision based on decision_made_by.
Instance Attribute Details
#decision_made_by ⇒ Object
Returns the value of attribute decision_made_by.
140 141 142 |
# File 'app/models/qc_results_upload_factory.rb', line 140 def decision_made_by @decision_made_by end |
#qc_result ⇒ Object
Returns the value of attribute qc_result.
140 141 142 |
# File 'app/models/qc_results_upload_factory.rb', line 140 def qc_result @qc_result end |
Instance Method Details
#qc_decision ⇒ QcResult
Returns the decision based on decision_made_by
146 147 148 |
# File 'app/models/qc_results_upload_factory.rb', line 146 def qc_decision qc_result.qc_decisions.find_by(decision_made_by:) end |