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

Method initClass

app/models/Prepaid.js:20–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18module.exports = (Prepaid = (function () {
19 Prepaid = class Prepaid extends CocoModel {
20 static initClass () {
21 this.className = 'Prepaid'
22 this.prototype.urlRoot = '/db/prepaid'
23 }
24
25 openSpots () {
26 if (this.get('redeemers') != null) { return this.get('maxRedeemers') - __guard__(this.get('redeemers'), x => x.length) }

Callers 1

Prepaid.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected