Module: Closeio::Client::Opportunity
- Included in:
- Closeio::Client
- Defined in:
- lib/closeio/resources/opportunity.rb
Instance Method Summary collapse
- #create_opportunity(options = {}) ⇒ Object
- #delete_opportunity(id) ⇒ Object
- #find_opportunity(id) ⇒ Object
- #list_opportunities(options = {}) ⇒ Object
- #update_opportunity(id, options = {}) ⇒ Object
Instance Method Details
#create_opportunity(options = {}) ⇒ Object
13 14 15 |
# File 'lib/closeio/resources/opportunity.rb', line 13 def create_opportunity(={}) post(opportunity_path, ) end |
#delete_opportunity(id) ⇒ Object
21 22 23 |
# File 'lib/closeio/resources/opportunity.rb', line 21 def delete_opportunity(id) delete(opportunity_path(id)) end |
#find_opportunity(id) ⇒ Object
9 10 11 |
# File 'lib/closeio/resources/opportunity.rb', line 9 def find_opportunity(id) get(opportunity_path(id)) end |
#list_opportunities(options = {}) ⇒ Object
5 6 7 |
# File 'lib/closeio/resources/opportunity.rb', line 5 def list_opportunities(={}) get(opportunity_path, query: ) end |
#update_opportunity(id, options = {}) ⇒ Object
17 18 19 |
# File 'lib/closeio/resources/opportunity.rb', line 17 def update_opportunity(id, ={}) put(opportunity_path(id), ) end |