Sha256: 64f4c4a5281a92abd6a8b1868496ba3004cdf71e61d6554b4ccabac53c990c86

Contents?: true

Size: 350 Bytes

Versions: 6

Compression:

Stored size: 350 Bytes

Contents

# 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')
  end

  def mock
    delete!(:ticket_fields, ticket_field_id)

    mock_response(nil)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zendesk2-1.15.0 lib/zendesk2/destroy_ticket_field.rb
zendesk2-1.13.1 lib/zendesk2/destroy_ticket_field.rb
zendesk2-1.13.0 lib/zendesk2/destroy_ticket_field.rb
zendesk2-1.12.0 lib/zendesk2/destroy_ticket_field.rb
zendesk2-1.11.0 lib/zendesk2/destroy_ticket_field.rb
zendesk2-1.10.0 lib/zendesk2/destroy_ticket_field.rb