Sha256: 22cd243da0756b6425cd825ef4597a89ea016d1b1c4e10f1d7f771df17a3b0b2
Contents?: true
Size: 608 Bytes
Versions: 51
Compression:
Stored size: 608 Bytes
Contents
class Zendesk2::Client class Real def update_organization(params={}) id = params.delete("id") request( :method => :put, :path => "/organizations/#{id}.json", :body => { "organization" => params }, ) end end class Mock def update_organization(params={}) id = params.delete("id") body = self.data[:organizations][id].merge!(params) response( :method => :put, :path => "/organizations/#{id}.json", :body => { "organization" => body }, ) end end end
Version data entries
51 entries across 51 versions & 1 rubygems