Method: Propertyware::Refund#list_invalid_properties
- Defined in:
- lib/propertyware/models/refund.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/propertyware/models/refund.rb', line 186 def list_invalid_properties invalid_properties = Array.new if @amount.nil? invalid_properties.push('invalid value for "amount", amount cannot be nil.') end if @date.nil? invalid_properties.push('invalid value for "date", date cannot be nil.') end invalid_properties end |