Method: Propertyware::WorkOrder#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



408
409
410
411
412
413
414
# File 'lib/propertyware/models/work_order.rb', line 408

def valid?
  authorize_enter_validator = EnumAttributeValidator.new('String', ["NO", "ANYTIME", "SPECIFIEDTIME"])
  return false unless authorize_enter_validator.valid?(@authorize_enter)
  priority_validator = EnumAttributeValidator.new('String', ["HIGH", "MEDIUM", "LOW"])
  return false unless priority_validator.valid?(@priority)
  true
end