Sha256: 503f1ae1787fefd1813bee79492a975db9b9cba8d1f0704803820ca56836ea08
Contents?: true
Size: 552 Bytes
Versions: 11
Compression:
Stored size: 552 Bytes
Contents
class Zendesk2::Client class Real def update_user(params={}) id = params.delete("id") request( :method => :put, :path => "/users/#{id}.json", :body => { "user" => params }, ) end end class Mock def update_user(params={}) id = params.delete("id") body = self.data[:users][id].merge!(params) response( :method => :put, :path => "/users/#{id}.json", :body => { "user" => body }, ) end end end
Version data entries
11 entries across 11 versions & 1 rubygems