Class: Pipedrive::Organization
- Includes:
- Pipedrive::Operations::Create, Pipedrive::Operations::Delete, Pipedrive::Operations::Read, Pipedrive::Operations::Update, Utils
- Defined in:
- lib/pipedrive/organization.rb
Instance Method Summary collapse
Methods included from Utils
Methods included from Pipedrive::Operations::Delete
Methods included from Pipedrive::Operations::Update
Methods included from Pipedrive::Operations::Create
Methods included from Pipedrive::Operations::Read
#all, #chunk, #each, #find_by_id
Methods inherited from Base
#build_url, #connection, connection, #entity_name, #failed_response, faraday_options, #initialize, #make_api_call, #process_response
Constructor Details
This class inherits a constructor from Pipedrive::Base
Instance Method Details
#find_by_name(*args, &block) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/pipedrive/organization.rb', line 11 def find_by_name(*args, &block) params = args. 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 |