Sha256: 85f465184effc3c764c64aa9377d6faf309e8bf53561ca6ecca747c7c4f010fa
Contents?: true
Size: 448 Bytes
Versions: 5
Compression:
Stored size: 448 Bytes
Contents
class Zendesk2::Client::GetHelpCenterSectionsArticles < Zendesk2::Client::Request request_path { |r| "/help_center/sections/#{r.section_id}/articles.json" } page_params! def section_id Integer( params.fetch("section_id") ) end def mock self.find!(:help_center_sections, section_id) mock_response("articles" => self.data[:help_center_articles].values.select { |s| s["section_id"] == section_id }) end end
Version data entries
5 entries across 5 versions & 1 rubygems