Sha256: 95acda7288fd341a054d7635278001da2886aeb2b3d78f049e3f22ced8d5fe73
Contents?: true
Size: 476 Bytes
Versions: 21
Compression:
Stored size: 476 Bytes
Contents
class Zendesk2::Client::GetHelpCenterSection < Zendesk2::Client::Request request_method :get request_path { |r| if locale = r.params.fetch("section")["locale"] "/help_center/#{locale}/sections/#{r.section_id}.json" else "/help_center/sections/#{r.section_id}.json" end } def section_id params.fetch("section").fetch("id") end def mock(params={}) mock_response("section" => self.find!(:help_center_sections, section_id)) end end
Version data entries
21 entries across 21 versions & 1 rubygems