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

Method fetchByCode

app/models/Classroom.js:77–84  ·  view source on GitHub ↗
(code, opts)

Source from the content-addressed store, hash-verified

75 }
76
77 fetchByCode (code, opts) {
78 const options = {
79 url: _.result(this, 'url'),
80 data: { code, 'with-owner': true }
81 }
82 _.extend(options, opts)
83 return this.fetch(options)
84 }
85
86 getLevelNumber (levelID, defaultNumber, courseID) {
87 // deal with duplicated levels in different course

Callers 3

fetchClassByCodeMethod · 0.80
constructorMethod · 0.80
onClickExportProgressMethod · 0.80

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected