Knock.Preferences.set_category

You're seeing just the function set_category, go back to Knock.Preferences module for more information.
Link to this function

set_category(client, user_id, category_key, setting, options \\ [])

View Source

Sets the workflow preference for the user