Class: Pipedrive::Deals
Instance Method Summary collapse
Methods inherited from Base
#[], #all, #authenticate, #base_uri, #get, #initialize, #metric_key, #metrics, #protocol, #resource, #resource_path
Constructor Details
This class inherits a constructor from Pipedrive::Base
Instance Method Details
#prepare_options(options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/pipedrive/deals.rb', line 3 def ( = {}) filter_name = .delete(:filter) if filter_name.present? filter = resource(:filters)[filter_name] if filter.present? [:params] = ([:params]||{}).merge({filter_id: filter[:id]}) end end end |