Sha256: 088378b70887de9eb6bd837189982ca832f4871ca3558859a91a15da0aebd0f2
Contents?: true
Size: 497 Bytes
Versions: 4
Compression:
Stored size: 497 Bytes
Contents
class Zendesk2::Client class Real def get_topic_comment(params={}) id = params["id"] request( :method => :get, :path => "/topic_comments/#{id}.json" ) end end # Real class Mock def get_topic_comment(params={}) id = params["id"] body = self.data[:topic_comments][id] response( :path => "/topic_comments/#{id}.json", :body => { "topic_comment" => body }, ) end end # Mock end
Version data entries
4 entries across 4 versions & 1 rubygems