Sha256: 6bf0c9bc2e1d22142e155da80fabe4c7c4485a948ce2256d6ff131aeacb68c2f
Contents?: true
Size: 465 Bytes
Versions: 6
Compression:
Stored size: 465 Bytes
Contents
# frozen_string_literal: true class Zendesk2::GetHelpCenterPosts include Zendesk2::Request request_path do |r| if r.topic_id "/community/topics/#{r.topic_id}.json" elsif r.user_id "/community/users/#{r.user_id}.json" else '/community/posts.json' end end page_params! def topic_id params['topic_id'] end def user_id params['user_id'] end def mock page(:help_center_posts, root: 'posts') end end
Version data entries
6 entries across 6 versions & 1 rubygems