Method: Propertyware::Refund#valid?

Defined in:
lib/propertyware/models/refund.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



201
202
203
204
205
# File 'lib/propertyware/models/refund.rb', line 201

def valid?
  return false if @amount.nil?
  return false if @date.nil?
  true
end