Class: SpecialReviewCollection
- Inherits:
-
CollectionsFactory
- Object
- CollectionsFactory
- SpecialReviewCollection
- Defined in:
- lib/kuality-coeus/data_objects/proposal_development/special_review.rb
Overview
SpecialReviewObject
Instance Method Summary collapse
- #statuses ⇒ Object
-
#type(srtype) ⇒ Object
A warning about this method: it’s going to return the FIRST match in the collection, under the assumption that there won’t be multiple Special Review items of the same type.
- #types ⇒ Object
Instance Method Details
#statuses ⇒ Object
69 70 71 |
# File 'lib/kuality-coeus/data_objects/proposal_development/special_review.rb', line 69 def statuses self.collect { |s_r| s_r.approval_status } end |
#type(srtype) ⇒ Object
A warning about this method: it’s going to return the FIRST match in the collection, under the assumption that there won’t be multiple Special Review items of the same type.
77 78 79 |
# File 'lib/kuality-coeus/data_objects/proposal_development/special_review.rb', line 77 def type(srtype) self.find { |s_r| s_r.type==srtype} end |
#types ⇒ Object
65 66 67 |
# File 'lib/kuality-coeus/data_objects/proposal_development/special_review.rb', line 65 def types self.collect { |s_r| s_r.type } end |