Method: KlaviyoAPI::CustomMetricDefinition#valid?
- Defined in:
- lib/klaviyo-api-sdk/models/custom_metric_definition.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
114 115 116 117 118 119 120 |
# File 'lib/klaviyo-api-sdk/models/custom_metric_definition.rb', line 114 def valid? return false if @aggregation_method.nil? aggregation_method_validator = EnumAttributeValidator.new('String', ["count", "value"]) return false unless aggregation_method_validator.valid?(@aggregation_method) return false if @metric_groups.nil? true end |