Module: Teamlab::GroupHelper
- Included in:
- Group
- Defined in:
- lib/teamlab/modules/group/group_helper.rb
Overview
Helper to store methods for working with groups
Instance Method Summary collapse
-
#info_by_name(name) ⇒ Hash
Info about that group.
Instance Method Details
#info_by_name(name) ⇒ Hash
Returns info about that group.
8 9 10 11 12 13 |
# File 'lib/teamlab/modules/group/group_helper.rb', line 8 def info_by_name(name) get_groups.data.each do |group| return group if group['name'] == name end nil end |