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
408 409 410 411 412 413 414 |
# File 'lib/propertyware/models/work_order.rb', line 408 def valid? = EnumAttributeValidator.new('String', ["NO", "ANYTIME", "SPECIFIEDTIME"]) return false unless .valid?() priority_validator = EnumAttributeValidator.new('String', ["HIGH", "MEDIUM", "LOW"]) return false unless priority_validator.valid?(@priority) true end |