Skip to content

Commit 89602b4

Browse files
fix(specs): remove fields requirement from run response in CompAPI client (generated)
algolia/api-clients-automation#5809 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Clara Muller <5667350+ClaraMuller@users.noreply.github.com>
1 parent d5f66c6 commit 89602b4

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/algolia/models/composition/search_results_item.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -341,44 +341,30 @@ def initialize(attributes = {})
341341
if (value = attributes[:hits]).is_a?(Array)
342342
self.hits = value
343343
end
344-
else
345-
self.hits = nil
346344
end
347345

348346
if attributes.key?(:hits_per_page)
349347
self.hits_per_page = attributes[:hits_per_page]
350-
else
351-
self.hits_per_page = nil
352348
end
353349

354350
if attributes.key?(:nb_hits)
355351
self.nb_hits = attributes[:nb_hits]
356-
else
357-
self.nb_hits = nil
358352
end
359353

360354
if attributes.key?(:nb_pages)
361355
self.nb_pages = attributes[:nb_pages]
362-
else
363-
self.nb_pages = nil
364356
end
365357

366358
if attributes.key?(:page)
367359
self.page = attributes[:page]
368-
else
369-
self.page = nil
370360
end
371361

372362
if attributes.key?(:params)
373363
self.params = attributes[:params]
374-
else
375-
self.params = nil
376364
end
377365

378366
if attributes.key?(:query)
379367
self.query = attributes[:query]
380-
else
381-
self.query = nil
382368
end
383369

384370
if attributes.key?(:compositions)

0 commit comments

Comments
 (0)