Module: Closeio::Client::OpportunityStatus
- Included in:
- Closeio::Client
- Defined in:
- lib/closeio/resources/opportunity_status.rb
Instance Method Summary collapse
- #create_opportunity_status(options = {}) ⇒ Object
- #delete_opportunity_status(id) ⇒ Object
- #list_opportunity_statuses ⇒ Object
- #update_opportunity_status(id, options = {}) ⇒ Object
Instance Method Details
#create_opportunity_status(options = {}) ⇒ Object
8 9 10 |
# File 'lib/closeio/resources/opportunity_status.rb', line 8 def create_opportunity_status( = {}) post(opportunity_status_path, ) end |
#delete_opportunity_status(id) ⇒ Object
16 17 18 |
# File 'lib/closeio/resources/opportunity_status.rb', line 16 def delete_opportunity_status(id) delete(opportunity_status_path(id)) end |
#list_opportunity_statuses ⇒ Object
4 5 6 |
# File 'lib/closeio/resources/opportunity_status.rb', line 4 def list_opportunity_statuses get(opportunity_status_path) end |
#update_opportunity_status(id, options = {}) ⇒ Object
12 13 14 |
# File 'lib/closeio/resources/opportunity_status.rb', line 12 def update_opportunity_status(id, = {}) put(opportunity_status_path(id), ) end |