Class: Bosh::Director::DefaultPropertyValidationMessage
- Defined in:
- lib/bosh/director/validation_helper.rb
Instance Method Summary collapse
- #invalid_max(options, property, result) ⇒ Object
- #invalid_min(options, property, result) ⇒ Object
- #invalid_type(property, klass, value) ⇒ Object
Instance Method Details
#invalid_max(options, property, result) ⇒ Object
69 70 71 |
# File 'lib/bosh/director/validation_helper.rb', line 69 def invalid_max(, property, result) "Default value for property '#{property}' value (#{result.inspect}) should be less than #{[:max].inspect}" end |
#invalid_min(options, property, result) ⇒ Object
73 74 75 |
# File 'lib/bosh/director/validation_helper.rb', line 73 def invalid_min(, property, result) "Default value for property '#{property}' value (#{result.inspect}) should be greater than #{[: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 |