Class: PipedriveAPI::SearchResult
- Defined in:
- lib/pipedrive_api/search_result.rb
Class Method Summary collapse
Methods inherited from Base
all, auth, create, find, find_by_name, handle, remove, resource_path, update
Class Method Details
.by_field(term, field_type, field_key, exact_match = true, **params) ⇒ Object
6 7 8 9 10 |
# File 'lib/pipedrive_api/search_result.rb', line 6 def by_field(term, field_type, field_key, exact_match=true, **params) query = { term: term, field_type: field_type, field_key: field_key, exact_match: exact_match, return_item_ids: true } response = get "#{resource_path}/field", query: query.merge(params) handle response end |