Method: GongAPI::CustomerData#valid?

Defined in:
lib/gong_api/models/customer_data.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



101
102
103
104
105
# File 'lib/gong_api/models/customer_data.rb', line 101

def valid?
  system_validator = EnumAttributeValidator.new('Object', ['Generic', 'HubSpot', 'MicrosoftDynamic', 'Salesforce'])
  return false unless system_validator.valid?(@system)
  true
end