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

Method constructor

app/collections/PatchesCollection.js:20–26  ·  view source on GitHub ↗
(models, options, forModel, status)

Source from the content-addressed store, hash-verified

18 }
19
20 constructor (models, options, forModel, status) {
21 super(...arguments)
22 if (!status) { status = 'pending' }
23 this.status = status
24 const identifier = !forModel.get('original') ? '_id' : 'original'
25 this.url = `${forModel.urlRoot}/${forModel.get(identifier)}/patches?status=${this.status}`
26 }
27 }
28 PatchesCollection.initClass()
29 return PatchesCollection

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected