Class: Bosh::Director::PropertyValidationMessage

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



55
56
57
# File 'lib/bosh/director/validation_helper.rb', line 55

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

#invalid_min(options, property, result) ⇒ Object



59
60
61
# File 'lib/bosh/director/validation_helper.rb', line 59

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

#invalid_type(property, klass, value) ⇒ Object



51
52
53
# File 'lib/bosh/director/validation_helper.rb', line 51

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