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

Method initialize

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

Source from the content-addressed store, hash-verified

43 }
44
45 initialize () {
46 this.listenTo(this, 'add', function () {
47 const maxRedeemers = this.get('maxRedeemers')
48 if (_.isString(maxRedeemers)) {
49 return this.set('maxRedeemers', parseInt(maxRedeemers))
50 }
51 })
52 return super.initialize(...arguments)
53 }
54
55 status () {
56 const endDate = this.get('endDate')

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected