Constructors
constructor
- new Ruleset(id, name, rules?, description?): Ruleset
Parameters
- id: string
- name: string
- rules: Rule[] = []
- description: string = ''
Properties
description
description: string
Methods
addRule
- addRule(rule): void
Returns void
deleteRule
- deleteRule(id): void
Returns void
evaluate
- evaluate(data): Promise<EvaluationResult>
Parameters
- data: Record<string, any>
Returns Promise<EvaluationResult>
getAllRules
- getAllRules(): Rule[]
Returns Rule[]
Adds a rule to the ruleset.