MCPcopy Index your code
hub / github.com/codecombat/codecombat / parse

Method parse

app/models/Classroom.js:42–51  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

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)

Calls

no outgoing calls

Tested by 1

copyFunction · 0.64