External validations for ruby objects