Sha256: a9c52abcd643fa9f0e42122e740b5447b19b65a1dd91505e10fc05bebcc72c8d

Contents?: true

Size: 711 Bytes

Versions: 36

Compression:

Stored size: 711 Bytes

Contents

class Zendesk2::Client
  class Real
    def destroy_user_identity(params={})
      id      = params.delete("id")
      user_id = params.delete("user_id")

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

  class Mock
    def destroy_user_identity(params={})
      id      = params["id"]
      user_id = params["user_id"]
      path    = "/users/#{user_id}/identities/#{id}.json"

      user_identity = self.data[:identities][id]
      body = self.data[:identities].delete(id)
      response(
        :method => :delete,
        :path   => path,
        :body   => {
          "identity" => body,
        },
      )
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

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