lib/zendesk2/destroy_ticket_field.rb in zendesk2-1.9.0 vs lib/zendesk2/destroy_ticket_field.rb in zendesk2-1.10.0

- old
+ new

@@ -1,16 +1,17 @@ +# frozen_string_literal: true class Zendesk2::DestroyTicketField include Zendesk2::Request request_method :delete request_path { |r| "/ticket_fields/#{r.ticket_field_id}.json" } def ticket_field_id - params.fetch("ticket_field").fetch("id") + params.fetch('ticket_field').fetch('id') end def mock - self.delete!(:ticket_fields, ticket_field_id) + delete!(:ticket_fields, ticket_field_id) mock_response(nil) end end