lib/hubspot/codegen/crm/companies/models/association_spec.rb in hubspot-api-client-18.0.0 vs lib/hubspot/codegen/crm/companies/models/association_spec.rb in hubspot-api-client-19.0.0
- old
+ new
@@ -96,27 +96,17 @@
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
- if @association_category.nil?
- invalid_properties.push('invalid value for "association_category", association_category cannot be nil.')
- end
-
- if @association_type_id.nil?
- invalid_properties.push('invalid value for "association_type_id", association_type_id cannot be nil.')
- end
-
invalid_properties
end
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
- return false if @association_category.nil?
association_category_validator = EnumAttributeValidator.new('String', ["HUBSPOT_DEFINED", "USER_DEFINED", "INTEGRATOR_DEFINED"])
return false unless association_category_validator.valid?(@association_category)
- return false if @association_type_id.nil?
true
end
# Custom attribute writer method checking allowed values (enum).
# @param [Object] association_category Object to be assigned