class Pipedrive::Pipeline
Public Instance Methods
deals(id, stage_id)
click to toggle source
# File lib/pipedrive/pipeline.rb, line 13 def deals(id, stage_id) Pipedrive::Deal.all(get "#{resource_path}/#{id}/deals", :stage_id => stage_id ) end
stages()
click to toggle source
# File lib/pipedrive/pipeline.rb, line 3 def stages Stage.all(get "/stages", { :pipeline_id => self.id }) end
statistics(id, start_date, end_date)
click to toggle source
# File lib/pipedrive/pipeline.rb, line 7 def statistics(id, start_date, end_date) res = get("#{resource_path}/#{id}/movement_statistics", :query => {:start_date => start_date, :end_date => end_date}) res.ok? ? new(res) : bad_response(res,{:id=>id,:start_date=>start_date,:end_date=>end_date}) end