Class: SpecialReviewCollection

Inherits:
Array
  • Object
show all
Defined in:
lib/kuality-coeus/data_objects/proposal_development/special_review.rb

Overview

SpecialReviewObject

Instance Method Summary collapse

Instance Method Details

#statusesObject



67
68
69
# File 'lib/kuality-coeus/data_objects/proposal_development/special_review.rb', line 67

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.



75
76
77
# File 'lib/kuality-coeus/data_objects/proposal_development/special_review.rb', line 75

def type(srtype)
  self.find { |s_r| s_r.type==srtype}
end

#typesObject



63
64
65
# File 'lib/kuality-coeus/data_objects/proposal_development/special_review.rb', line 63

def types
  self.collect { |s_r| s_r.type }
end