Method: OpenapiClient::TimesheetResponse#list_invalid_properties

Defined in:
lib/openapi_client/models/timesheet_response.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/openapi_client/models/timesheet_response.rb', line 130

def list_invalid_properties
  invalid_properties = Array.new
  if @id.nil?
    invalid_properties.push('invalid value for "id", id cannot be nil.')
  end

  if @remote_id.nil?
    invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
  end

  if @employee_id.nil?
    invalid_properties.push('invalid value for "employee_id", employee_id cannot be nil.')
  end

  if @hours_worked.nil?
    invalid_properties.push('invalid value for "hours_worked", hours_worked cannot be nil.')
  end

  invalid_properties
end