Sha256: 6208a5272ff6e28c4bca7367e309442b67451be02fb0c38620bd808f11fddf0c
Contents?: true
Size: 909 Bytes
Versions: 8
Compression:
Stored size: 909 Bytes
Contents
class Zendesk2::Client class Real def get_help_center_category(params={}) id = require_parameters(params, "id") locale = params["locale"] path = if locale "/help_center/#{locale}/categories/#{id}.json" else "/help_center/categories/#{id}.json" end request( :method => :get, :path => path, ) end end # Real class Mock def get_help_center_category(params={}) id = require_parameters(params, "id") locale = params["locale"] path = if locale "/help_center/#{locale}/categories/#{id}.json" else "/help_center/categories/#{id}.json" end response( :path => path, :body => { "category" => self.find!(:help_center_categories, id.to_i) }, ) end end # Mock end
Version data entries
8 entries across 8 versions & 1 rubygems