Method: OpenapiClient::EmploymentResponse#valid?

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

#valid?Boolean

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



154
155
156
157
158
159
160
161
# File 'lib/openapi_client/models/employment_response.rb', line 154

def valid?
  pay_frequency_validator = EnumAttributeValidator.new('String', ["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)
  return false if @currency.nil?
  true
end