Method: OpenapiClient::CompensationHistoryResponse#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



151
152
153
154
155
156
157
# File 'lib/openapi_client/models/compensation_history_response.rb', line 151

def valid?
  pay_frequency_validator = EnumAttributeValidator.new('String', ["year", "weekly", "biweekly", "semimonthly", "monthly", "other", "null"])
  return false unless pay_frequency_validator.valid?(@pay_frequency)
  employment_type_validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "other", "null"])
  return false unless employment_type_validator.valid?(@employment_type)
  true
end