Class: Bosh::Director::DefaultPropertyValidationMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/director/validation_helper.rb

Instance Method Summary collapse

Instance Method Details

#invalid_max(options, property, result) ⇒ Object



69
70
71
# File 'lib/bosh/director/validation_helper.rb', line 69

def invalid_max(options, property, result)
  "Default value for property '#{property}' value (#{result.inspect}) should be less than #{options[:max].inspect}"
end

#invalid_min(options, property, result) ⇒ Object



73
74
75
# File 'lib/bosh/director/validation_helper.rb', line 73

def invalid_min(options, property, result)
  "Default value for property '#{property}' value (#{result.inspect}) should be greater than #{options[:min].inspect}"
end

#invalid_type(property, klass, value) ⇒ Object



65
66
67
# File 'lib/bosh/director/validation_helper.rb', line 65

def invalid_type(property, klass, value)
  "Default value for property '#{property}' value (#{value.inspect}) did not match the required type '#{klass}'"
end