Class: PipedriveRuby::Products

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

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

#deals(product) ⇒ Object



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

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

#find_by_name(term) ⇒ Object



12
13
14
# File 'lib/resources/products.rb', line 12

def find_by_name(term)
  find_by(term)
end