Module: Closeio::Client::Opportunity

Included in:
Closeio::Client
Defined in:
lib/closeio/resources/opportunity.rb

Instance Method Summary collapse

Instance Method Details

#create_opportunity(options = {}) ⇒ Object



13
14
15
# File 'lib/closeio/resources/opportunity.rb', line 13

def create_opportunity(options={})
  post(opportunity_path, options)
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(options={})
  get(opportunity_path, query: options)
end

#update_opportunity(id, options = {}) ⇒ Object



17
18
19
# File 'lib/closeio/resources/opportunity.rb', line 17

def update_opportunity(id, options={})
  put(opportunity_path(id), options)
end