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

Method getImageURL

app/models/Achievement.js:49–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 getStyle () { return Achievement.styleMapping[this.get('difficulty', true)] }
48
49 getImageURL () {
50 if (this.get('icon')) { return '/file/' + this.get('icon') } else { return Achievement.defaultImageURL }
51 }
52
53 hasImage () { return (this.get('icon') != null) }
54

Callers 2

cacheLockedImageMethod · 0.95
calculateDataMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected