class HaveAPI::Validators::Inclusion

Checks that the value is from given set of allowed values.

Short form:

string :param, choices: %i(one two three)

Full form:

string :param, choices: {
  values: %i(one two three),
  message: 'the error message'
}

Option ‘choices` is an alias to `include`.