Sha256: fee11712b1214509c80b35fbe6a2828d3fb71f7b7b3301e83ff4e87644cb976a
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
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) params = args.extract_options! params[:term] ||= args[0] fail 'term is missing' unless params[:term] return to_enum(:find_by_name, params) unless block_given? follow_pagination(:make_api_call, [:get, 'find'], params) { |item| yield item } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pipedrive.rb-0.2.0 | lib/pipedrive/organization.rb |