You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2025. It is now read-only.
Trey Terrell edited this page May 28, 2015
·
1 revision
Below is documentation of some interfaces that Oregon Digital depends on.
Validators
A property validator comes from ComposedValidations. Its interface looks like this:
classValidator# @param [Object] value A value to check the validity of.# @return [True, False] Whether or not the value is valid.defvalid_value?(value)end# @return A message to display when a value is not valid.defmessageend
Controlled Vocabulary
A controlled vocabulary is a Validator which has a label and a description.
classControlledVocabulary# @return A descriptive label for this controlled vocabulary.deflabelend# @return A description of what this controlled vocabulary consists of.defdescriptionend# @see Validator#valid_value?defvalid_value?;end# @see Validator#messagedefmessage;end