(obj)
| 40 | } |
| 41 | |
| 42 | parse (obj) { |
| 43 | if (obj._id) { |
| 44 | // It's just the classroom object |
| 45 | return obj |
| 46 | } else { |
| 47 | // It's a compound response with other stuff too |
| 48 | this.owner = new User(obj.owner) |
| 49 | return obj.data |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | capitalizeLanguageName () { |
| 54 | const language = __guard__(this.get('aceConfig'), x => x.language) |
no outgoing calls