lib/crunchbase/autocompletes/client.rb in crunchbase4-0.1.2 vs lib/crunchbase/autocompletes/client.rb in crunchbase4-0.1.3

- old
+ new

@@ -24,20 +24,20 @@ @entity_type = 'autocomplete_entity' end # Will include all attribute from API document def autocompletes - wrapping!( + wrapping_autocomplete_entities!( get( ROOT_LIST, autocompletes_parameters ) ) end private - def wrapping!(response) + def wrapping_autocomplete_entities!(response) query_results = search_results(response.dig('entities')) self.total_count = response['count'] self.entities = query_results self.count = query_results.size