Class: Pipedrive::Organization
- Includes:
- Deals
- Defined in:
- lib/pipedrive/organization.rb
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#persons ⇒ Object
TODO Rewrite this.
Methods inherited from Base
all, authenticate, bad_response, create, find, find_by_name, #initialize, new_list, resource_path, #update
Constructor Details
This class inherits a constructor from Pipedrive::Base
Class Method Details
.find_or_create_by_name(name, opts = {}) ⇒ Object
12 13 14 |
# File 'lib/pipedrive/organization.rb', line 12 def find_or_create_by_name(name, opts={}) find_by_name(name).first || create(opts.merge(:title => name)) end |