Method: MoneyKit::ValidationError#list_invalid_properties
- Defined in:
- lib/moneykit/models/validation_error.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/moneykit/models/validation_error.rb', line 91 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @location.nil? invalid_properties.push('invalid value for "location", location cannot be nil.') end if .nil? invalid_properties.push('invalid value for "message", message cannot be nil.') end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end invalid_properties end |