Conditions | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | module GlipSdk::REST::Cache |
||
22 | def load_group(group) |
||
23 | if group.key? 'id' |
||
24 | id = group['id'] |
||
25 | type = group['type'] |
||
26 | if type.to_s.downcase == 'team' |
||
27 | @teams[id.to_s] = group |
||
28 | @teams_name2id[group['name']] = id.to_s |
||
29 | else |
||
30 | @groups[id.to_s] = group |
||
31 | @groups_name2id[group['name']] = id.to_s |
||
32 | end |
||
33 | end |
||
34 | end |
||
35 | |||
58 |