Structure the helpers methods the same way
This commit is contained in:
parent
c5953f8aef
commit
71e9a6056d
1 changed files with 2 additions and 2 deletions
|
@ -4,14 +4,14 @@ class Pipedrive::API
|
||||||
PIPEDRIVE_PEOPLE_URL = [PIPEDRIVE_API_URL, 'persons'].join("/")
|
PIPEDRIVE_PEOPLE_URL = [PIPEDRIVE_API_URL, 'persons'].join("/")
|
||||||
|
|
||||||
def self.get_persons_owned_by_user(user_id)
|
def self.get_persons_owned_by_user(user_id)
|
||||||
|
url = PIPEDRIVE_PEOPLE_URL
|
||||||
params = { user_id: user_id }
|
params = { user_id: user_id }
|
||||||
|
|
||||||
self.get(PIPEDRIVE_PEOPLE_URL, params)
|
self.get(url, params)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.get_deals_for_person(person_id)
|
def self.get_deals_for_person(person_id)
|
||||||
url = [PIPEDRIVE_PEOPLE_URL, person_id, "deals"].join('/')
|
url = [PIPEDRIVE_PEOPLE_URL, person_id, "deals"].join('/')
|
||||||
|
|
||||||
params = { status: PIPEDRIVE_ALL_NOT_DELETED_DEALS }
|
params = { status: PIPEDRIVE_ALL_NOT_DELETED_DEALS }
|
||||||
|
|
||||||
self.get(url, params)
|
self.get(url, params)
|
||||||
|
|
Loading…
Reference in a new issue