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