Class: Bosh::Director::PropertyValidationMessage
- 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
55 56 57 |
# File 'lib/bosh/director/validation_helper.rb', line 55 def invalid_max(, property, result) "'#{property}' value (#{result.inspect}) should be less than #{[:max].inspect}" end |
#invalid_min(options, property, result) ⇒ Object
59 60 61 |
# File 'lib/bosh/director/validation_helper.rb', line 59 def invalid_min(, property, result) "'#{property}' value (#{result.inspect}) should be greater than #{[: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 |