Class: PipedriveRuby::Deals

Inherits:
Base
  • Object
show all
Defined in:
lib/resources/deals.rb

Overview

This class should hold all endpoints that are specific of deals

Instance Attribute Summary

Attributes inherited from Base

#base_url, #client, #endpoints

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from PipedriveRuby::Base

Instance Method Details

#activities(deal) ⇒ Object



27
28
29
# File 'lib/resources/deals.rb', line 27

def activities(deal)
    custom_get(:path => "#{deal['id']}/activities")
end

#add_participant(deal, person) ⇒ Object



35
36
# File 'lib/resources/deals.rb', line 35

def add_participant(deal, person)
end

#add_product(deal, product) ⇒ Object



18
19
# File 'lib/resources/deals.rb', line 18

def add_product(deal, product)
end

#delete_follower(deal, user) ⇒ Object



9
10
# File 'lib/resources/deals.rb', line 9

def delete_follower(deal, user)
end

#delete_participant(deal, participant) ⇒ Object



42
43
# File 'lib/resources/deals.rb', line 42

def delete_participant(deal, participant)
end

#delete_product(deal, product) ⇒ Object



24
25
# File 'lib/resources/deals.rb', line 24

def delete_product(deal, product)
end

#emails(deal) ⇒ Object



45
46
47
# File 'lib/resources/deals.rb', line 45

def emails(deal)
  custom_get(:path => "#{deal['id']}/emailMessages")
end

#find_by_title(term) ⇒ Object



49
50
51
# File 'lib/resources/deals.rb', line 49

def find_by_title(term)
    find_by(term)
end

#log(deal) ⇒ Object



31
32
33
# File 'lib/resources/deals.rb', line 31

def log(deal)
  custom_get(:path => "#{deal['id']}/flow")
end

#participants(deal) ⇒ Object



38
39
40
# File 'lib/resources/deals.rb', line 38

def participants(deal)
  custom_get(:path => "#{deal['id']}/participants")
end

#products(deal) ⇒ Object



12
13
14
15
16
# File 'lib/resources/deals.rb', line 12

def products(deal)
  custom_get(:path => "#{deal['id']}/products",
              :params => {:include_product_data => 1}
            )
end

#timelineObject



53
54
# File 'lib/resources/deals.rb', line 53

def timeline
end

#update_product(deal, product) ⇒ Object



21
22
# File 'lib/resources/deals.rb', line 21

def update_product(deal, product)
end