lib/zendesk2/destroy_organization.rb in zendesk2-1.9.0 vs lib/zendesk2/destroy_organization.rb in zendesk2-1.10.0
- old
+ new
@@ -1,16 +1,17 @@
+# frozen_string_literal: true
class Zendesk2::DestroyOrganization
include Zendesk2::Request
request_method :delete
request_path { |r| "/organizations/#{r.organization_id}.json" }
def organization_id
- params.fetch("organization").fetch("id")
+ params.fetch('organization').fetch('id')
end
def mock
- self.delete!(:organizations, organization_id)
+ delete!(:organizations, organization_id)
mock_response(nil)
end
end