lib/crunchbase/utilities/autocomplete.rb in crunchbase4-0.1.2 vs lib/crunchbase/utilities/autocomplete.rb in crunchbase4-0.1.3
- old
+ new
@@ -32,31 +32,31 @@
# raw_data = {
# query: keyword,
# collection_ids: 'organizations'
# }
def autocomplete_organizations(keyword)
- autocompletes(wrapper_query_data(keyword, 'organizations'))
+ autocompletes(wrapper_autocompletes_data(keyword, 'organizations'))
end
def autocomplete_people(keyword)
- autocompletes(wrapper_query_data(keyword, 'people'))
+ autocompletes(wrapper_autocompletes_data(keyword, 'people'))
end
def autocomplete_funding_rounds(keyword)
- autocompletes(wrapper_query_data(keyword, 'funding_rounds'))
+ autocompletes(wrapper_autocompletes_data(keyword, 'funding_rounds'))
end
def autocomplete_press_references(keyword)
- autocompletes(wrapper_query_data(keyword, 'press_references'))
+ autocompletes(wrapper_autocompletes_data(keyword, 'press_references'))
end
private
def autocompletes(raw_data)
Crunchbase::Autocompletes::Client.new(raw_data).autocompletes
end
- def wrapper_query_data(keyword, collection_ids)
+ def wrapper_autocompletes_data(keyword, collection_ids)
{
query: keyword,
collection_ids: collection_ids
}
end