Sha256: 8713e5efda6b548ef560e4515c1f4411be89bb256a4673604091cbe8aadef4fd
Contents?: true
Size: 460 Bytes
Versions: 6
Compression:
Stored size: 460 Bytes
Contents
class Zendesk2::Client::GetHelpCenterCategoriesSections < Zendesk2::Client::Request request_path { |r| "/help_center/categories/#{r.category_id}/sections.json" } page_params! def category_id Integer( params.fetch("category_id") ) end def mock self.find!(:help_center_categories, category_id) mock_response("sections" => self.data[:help_center_sections].values.select { |s| s["category_id"] == category_id }) end end
Version data entries
6 entries across 6 versions & 1 rubygems