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.
139 140 141 |
# File 'app/models/qc_results_upload_factory.rb', line 139 def decision_made_by @decision_made_by end |
#qc_result ⇒ Object
Returns the value of attribute qc_result.
139 140 141 |
# File 'app/models/qc_results_upload_factory.rb', line 139 def qc_result @qc_result end |
Instance Method Details
#qc_decision ⇒ QcResult
Returns the decision based on decision_made_by
145 146 147 |
# File 'app/models/qc_results_upload_factory.rb', line 145 def qc_decision qc_result.qc_decisions.find_by(decision_made_by:) end |