Sha256: cb5fd2158d5dc4de659c2ba3626d353b684ac94c00bb834b32e583fd6d0511fc
Contents?: true
Size: 593 Bytes
Versions: 4
Compression:
Stored size: 593 Bytes
Contents
# frozen_string_literal: true module Pipedrive class Organization < 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] 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
4 entries across 4 versions & 2 rubygems