Sha256: 2c4c79089366c816f84edddef679eff2ee0e0fe71d92d1f0dd13b945035525b7
Contents?: true
Size: 524 Bytes
Versions: 47
Compression:
Stored size: 524 Bytes
Contents
class Zendesk2::Client class Real def get_ticket_audit(params={}) id = params["id"] ticket_id = params["ticket_id"] request( :method => :get, :path => "/tickets/#{ticket_id}/audits/#{id}.json" ) end end # Real class Mock def get_ticket_audit(params={}) id = params["id"] response( :path => "/ticket_audits/#{id}.json", :body => { "ticket_audit" => find!(:ticket_audits, id) }, ) end end # Mock end
Version data entries
47 entries across 47 versions & 1 rubygems