MCPcopy Create free account
hub / github.com/codecombat/codecombat / initClass

Method initClass

app/collections/LevelSessions.js:16–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14module.exports = (LevelSessionCollection = (function () {
15 LevelSessionCollection = class LevelSessionCollection extends CocoCollection {
16 static initClass () {
17 this.prototype.url = '/db/level.session'
18 this.prototype.model = LevelSession
19 }
20
21 fetchForCourseInstance (courseInstanceID, options) {
22 const userID = (options != null ? options.userID : undefined) || me.id

Callers 1

LevelSessions.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected