soda-angular
Version:
Socrata SODA client for Angular
17 lines (16 loc) • 486 B
JavaScript
export class In {
constructor(column, values) {
if (!column) {
throw new Error("Column must be provided");
}
if (!values || values.length === 0) {
throw new Error("Values must be provided");
}
this.Column = column;
this.Values = values;
}
toString() {
const valuesList = this.Values.map(v => v.toString()).join(', ');
return `${this.Column} in (${valuesList})`;
}
}