Class: Pipedrive::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/pipedrive_client.rb

Constant Summary collapse

PIPELINE_HOST =
'https://api.pipedrive.com/v1/'

Instance Method Summary collapse

Constructor Details

#initialize(path, parameters = {}) ⇒ Client

Returns a new instance of Client.



10
11
12
13
14
15
16
# File 'lib/pipedrive_client.rb', line 10

def initialize(path, parameters = {})
  @api_path = path
  @parameters = parameters
  @parameters[:query] ||= {}
  @parameters[:query][:limit] ||= 500
  @parameters[:query][:start] ||= 0
end

Instance Method Details

#getObject



18
19
20
# File 'lib/pipedrive_client.rb', line 18

def get
  fetch_all
end