Sha256: c00674c18393981a10f9a38e50c6308ec5f071c32c5aae11404d5df18d096fc8
Contents?: true
Size: 639 Bytes
Versions: 2
Compression:
Stored size: 639 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 find_by_name(*args, &block) params = args.extract_options! params[:term] ||= args[0] raise 'term is missing' unless params[:term] params[:search_by_email] ||= args[1] ? 1 : 0 return to_enum(:find_by_name, params) unless block_given? follow_pagination(:make_api_call, [:get, 'find'], params, &block) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
pipedrive_api_rb-1.0.0 | lib/pipedrive/person.rb |
pipedrive.rb-0.3.0 | lib/pipedrive/person.rb |