Sha256: 3799e81c2714d0479d68c640d8e2598cff05e10ccd99f5bb26133fccc2640bf9

Contents?: true

Size: 528 Bytes

Versions: 21

Compression:

Stored size: 528 Bytes

Contents

class Zendesk2::Client
  class Real
    def destroy_ticket_field(params={})
      id = params["id"]

      request(
        :method => :delete,
        :path   => "/ticket_fields/#{id}.json"
      )
    end
  end

  class Mock
    def destroy_ticket_field(params={})
      id   = params["id"]
      body = self.data[:ticket_fields].delete(id)

      response(
        :method => :delete,
        :path   => "/ticket_fields/#{id}.json",
        :body   => {
          "ticket_field" => body,
        },
      )
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
zendesk2-1.2.7 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-1.2.6 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-1.2.5 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-1.2.4 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-1.2.3 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-1.2.2 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-1.2.1 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-1.2.0 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-1.1.3 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-1.1.2 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-1.0.0 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-0.5.4 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-0.5.3 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-0.5.2 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-0.5.1 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-0.5.0 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-0.4.5 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-0.4.4 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-0.4.3 lib/zendesk2/client/requests/destroy_ticket_field.rb
zendesk2-0.4.2 lib/zendesk2/client/requests/destroy_ticket_field.rb