Method: GoodData::Project#get_role_by_summary
- Defined in:
- lib/gooddata/models/project.rb
#get_role_by_summary(role_summary, role_list = roles) ⇒ GoodData::ProjectRole
Gets project role byt its summary
1132 1133 1134 1135 1136 1137 |
# File 'lib/gooddata/models/project.rb', line 1132 def get_role_by_summary(role_summary, role_list = roles) role_list.each do |role| return role if role.summary.downcase == role_summary.downcase end nil end |