Sha256: 4a12833107eae3b43a65412b62e62c55be80e6a2317332bd8eb321da0f5ff1e6
Contents?: true
Size: 659 Bytes
Versions: 2
Compression:
Stored size: 659 Bytes
Contents
# frozen_string_literal: true module Pipedrive class Person < Base include ::Pipedrive::Operations::Read include ::Pipedrive::Operations::Create include ::Pipedrive::Operations::Update include ::Pipedrive::Operations::Delete include ::Pipedrive::Utils def search(*args, &block) params = args.extract_options! params[:term] ||= args[0] raise 'term is missing' unless params[:term] params[:fields] ||= args[1] params.delete :fields if params[:fields].blank? return to_enum(:search, params) unless block follow_pagination(:make_api_call, [:get, 'search'], params, &block) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pipedrive_api_rb-1.0.5 | lib/pipedrive/person.rb |
pipedrive_api_rb-1.0.4 | lib/pipedrive/person.rb |