Sha256: ea2bee6287561ff0713ad6294992acd0a6dc43120c1fda825d8bb5b1da23695e
Contents?: true
Size: 904 Bytes
Versions: 9
Compression:
Stored size: 904 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) }, ) end end # Mock end
Version data entries
9 entries across 9 versions & 1 rubygems