Class: PipedriveAPI::Person
- Inherits:
-
Base
- Object
- Base
- PipedriveAPI::Person
show all
- Defined in:
- lib/pipedrive_api/person.rb
Class Method Summary
collapse
Methods inherited from Base
all, auth, create, find, find_by_name, handle, remove, resource_path, update
Class Method Details
.deals(id, **params) ⇒ Object
11
12
13
14
|
# File 'lib/pipedrive_api/person.rb', line 11
def deals(id, **params)
response = get "#{resource_path}/#{id}/deals", query: params
handle response
end
|
.find_by_email(email, **params) ⇒ Object
6
7
8
9
|
# File 'lib/pipedrive_api/person.rb', line 6
def find_by_email(email, **params)
response = get "#{resource_path}/find", query: { term: email, search_by_email: true }.merge(params)
handle response
end
|