Rule sets / Quota
rule set
Rulealize.RuleSet.Quota
A bounded allowance: so many of something, and then no more. A Rulealize rule set written to be held.
What 1.0.0 is made of
this documentQuota1.0.0
Hold it
A document that holds this one writes, in its uses:
"uses": [
{ "ruleSet": "Rulealize.RuleSet.Quota",
"version": "^1.0", "as": "quota" }
]as is not optional here. The identifier is the package identifier, so nothing has to look it up; as is the short name the holding document calls it by, and it is what qualifies this rule set's inputs inside that one. An alias defaults to the identifier and may not contain a ., so leaving it out is refused with a message about a key you did not write.
Inputs a composite could constrain
| Input | Comes from |
|---|---|
consume | this document |
reset | this document |
Releases
1.0.0latestrequires
Rulealize.Plugin.TypeSchema ^1.0Rulealize.Plugin.State ^1.0Rulealize.Plugin.Comparison ^1.0Rulealize.Plugin.Arithmetic ^1.0
inputs
consumereset