Method: Propertyware::SaveAccount#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



234
235
236
237
238
239
240
# File 'lib/propertyware/models/save_account.rb', line 234

def valid?
  return false if @account_number.nil?
  return false if @account_type.nil?
  return false if @code.nil?
  return false if @description.nil?
  true
end