Sha256: cf4e1f38220742d3f1a53253bb25490275028276203a934292a569072283ee9d
Contents?: true
Size: 355 Bytes
Versions: 4
Compression:
Stored size: 355 Bytes
Contents
class Zendesk2::Client::GetCcdTickets < Zendesk2::Client::Request request_path { |r| "/users/#{r.user_id}/tickets/ccd.json" } page_params! def user_id params.fetch("user_id").to_i end def mock tickets = service.data[:tickets].values.select { |u| u["collaborator_ids"].include?(user_id) } page(tickets, root: "tickets") end end
Version data entries
4 entries across 4 versions & 1 rubygems