rule_helpers | R Documentation |
Defining rules can become quite verbose, and it can be tricky to prepare the proper list structure for the POST or PUT request. These functions simplify things a bit and provide a leaner, more semantic interface.
condition(address, operator, value) action(address, method, ...)
address |
path to attribute or resource |
operator |
one of: eq, gt, lt, dx, ddx, stable, not stable, in, not in |
value |
the value a condition will compare against |
method |
the HTTP method used to send the body to the given address |
... |
named parameters to include in action body |
Returns a list-like structure suitable for create_rule()
or set_rule_attributes()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.