Jev in production › SDKs and workflow integrations
Ruby gem adds feels?, decide and score methods and a validates_feeling Rails validation that send a model field to Jev and return booleans, choices or scores for questions declared on the class.
email.feels?(:urgent) is a named question on a field, not a prompt in a service.
The class is the scope, the first argument is the field. validatesfeeling accepts allownil:, allowblank:, if:, unless:, on:, message:, atleast:. If those skip the check, there is no HTTP call. A nil from atleast: is a validation failure.
Jev::Model reads ticket.description (any method that returns a string). Bind-only uses the global Jev.define. Pass a string to define on the class: feels :description, :happy, "Sounds cheerful".
For the project's own README, linking back here: