Method: OpenapiClient::TimeOffEntryResponse#valid?
- Defined in:
- lib/openapi_client/models/time_off_entry_response.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
257 258 259 260 261 262 263 264 265 266 267 268 269 |
# File 'lib/openapi_client/models/time_off_entry_response.rb', line 257 def valid? return false if @id.nil? return false if @remote_id.nil? return false if @employee_id.nil? return false if @employee_remote_id.nil? return false if @amount.nil? return false if @unit.nil? unit_validator = EnumAttributeValidator.new('String', ["null", "hours", "days", "months"]) return false unless unit_validator.valid?(@unit) status_validator = EnumAttributeValidator.new('String', ["null", "approved", "pending", "rejected"]) return false unless status_validator.valid?(@status) true end |