(user, options)
| 88 | } |
| 89 | |
| 90 | redeem (user, options) { |
| 91 | if (options == null) { options = {} } |
| 92 | options.url = _.result(this, 'url') + '/redeemers' |
| 93 | options.type = 'POST' |
| 94 | if (options.data == null) { options.data = {} } |
| 95 | options.data.userID = user.id || user |
| 96 | return this.fetch(options) |
| 97 | } |
| 98 | |
| 99 | includesCourse (course) { |
| 100 | const courseID = (typeof course.get === 'function' ? course.get('name') : undefined) || course |
no test coverage detected