lib/hubspot/deal.rb in hubspot-ruby-0.1.8 vs lib/hubspot/deal.rb in hubspot-ruby-0.2.0
- old
+ new
@@ -54,11 +54,11 @@
# Archives the contact in hubspot
# {https://developers.hubspot.com/docs/methods/contacts/delete_contact}
# @return [TrueClass] true
def destroy!
- response = Hubspot::Connection.delete_json(DEAL_PATH, {deal_id: deal_id})
+ Hubspot::Connection.delete_json(DEAL_PATH, {deal_id: deal_id})
@destroyed = true
end
def destroyed?
!!@destroyed
@@ -72,10 +72,10 @@
# {https://developers.hubspot.com/docs/methods/deals/update_deal}
# @param params [Hash] hash of properties to update
# @return [Hubspot::Deal] self
def update!(params)
query = {"properties" => Hubspot::Utils.hash_to_properties(params.stringify_keys!, key_name: 'name')}
- response = Hubspot::Connection.put_json(UPDATE_DEAL_PATH, params: { deal_id: deal_id }, body: query)
+ Hubspot::Connection.put_json(UPDATE_DEAL_PATH, params: { deal_id: deal_id }, body: query)
@properties.merge!(params)
self
end
end
end