Sha256: 41132a388d8d64ec980fbfaf6be9696427bae49086939315b2e95373df2a29cc
Contents?: true
Size: 618 Bytes
Versions: 1
Compression:
Stored size: 618 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] return to_enum(:find_by_name, params) unless block_given? follow_pagination(:make_api_call, [:get, 'search'], params, &block) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pipedrive_api_rb-1.0.1 | lib/pipedrive/person.rb |