Sha256: 8cfc565af753d3be0dbace810c03bf43945434a41c20a0c25e9e4b6f8b65fdf1

Contents?: true

Size: 683 Bytes

Versions: 3

Compression:

Stored size: 683 Bytes

Contents

module PipedriveRuby
# Ordered reference objects, pointing to either Deals, Persons, Organizations, Files or Products.
  class SearchResults < PipedriveRuby::Base

    # 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.
    def field(params={})
      options = {:params => params}
      options[:path] = 'field'
      custom_get(options)
    end
    def_delegators :endpoints, :all, :custom_get
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pipedrive_ruby-1.0.2 lib/resources/search_results.rb
pipedrive_ruby-1.0.1.pre16 lib/resources/search_results.rb
pipedrive_ruby-1.0.1.pre15 lib/resources/search_results.rb