lib/algolia/models/ingestion/task_create_v1.rb in algolia-3.5.0 vs lib/algolia/models/ingestion/task_create_v1.rb in algolia-3.5.1
- old
+ new
@@ -130,27 +130,9 @@
if attributes.key?(:cursor)
self.cursor = attributes[:cursor]
end
end
- # Custom attribute writer method with validation
- # @param [Object] failure_threshold Value to be assigned
- def failure_threshold=(failure_threshold)
- if failure_threshold.nil?
- raise ArgumentError, "failure_threshold cannot be nil"
- end
-
- if failure_threshold > 100
- raise ArgumentError, "invalid value for \"failure_threshold\", must be smaller than or equal to 100."
- end
-
- if failure_threshold < 0
- raise ArgumentError, "invalid value for \"failure_threshold\", must be greater than or equal to 0."
- end
-
- @failure_threshold = failure_threshold
- end
-
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(other)
return true if self.equal?(other)
self.class == other.class &&