wajs
Version:
JavaScript bindings for Wolfram|Alpha web-service API
41 lines (32 loc) • 571 B
JavaScript
function assumption(data, parent) {
Object.assign(this, data)
if (!!parent) {
this.__parent = parent
}
this.__data = data
}
assumption.prototype = {
constructor: assumption,
getType: type,
getCount: count,
getTemplate: template,
getWord: word,
getValue: value
}
export default assumption
function type() {
return this.type || ''
}
function count() {
return this.count || '0'
}
function template() {
return this.template || ''
}
function word() {
return this.word || ''
}
function value() {
return this.value || []
}