Sha256: 352afff0c2b146cebeacc6f3e52f73f24a295b60fd7577f005fcca6cbc0de664
Contents?: true
Size: 422 Bytes
Versions: 21
Compression:
Stored size: 422 Bytes
Contents
class Zendesk2::Client::GetTopicComments < Zendesk2::Client::Request request_path { |r| "/topics/#{r.topic_id}/comments.json" } request_method :get page_params! def topic_id params.fetch("topic_id") end def mock self.find!(:topics, topic_id) topic_comments = self.data[:topic_comments].values.select { |c| c["topic_id"] == topic_id } page(topic_comments, root: "topic_comments") end end
Version data entries
21 entries across 21 versions & 1 rubygems