Class: SpecialReviewCollection

Inherits:
CollectionsFactory
  • 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



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

#typesObject



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