Class: PipedriveRuby::SearchResults

Inherits:
Base
  • Object
show all
Defined in:
lib/resources/search_results.rb

Overview

Ordered reference objects, pointing to either Deals, Persons, Organizations, Files or Products.

Instance Attribute Summary

Attributes inherited from Base

#base_url, #client, #endpoints

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from PipedriveRuby::Base

Instance Method Details

#field(params = {}) ⇒ Object

Performs a search from a specific field's values. Results can be either the distinct values of the field (useful for searching autocomplete field values), or actual items IDs (deals, persons, organizations or products). Works only with the following field types: varchar, varchar_auto, double, address, text, phone, date.



7
8
9
10
11
# File 'lib/resources/search_results.rb', line 7

def field(params={})
  options = {:params => params}
  options[:path] = 'field'
  custom_get(options)
end