Sha256: 9050119970f793a8b3e87ce24eb4168b653a4f12b6e7d6dbeb610d57c8831b5f
Contents?: true
Size: 427 Bytes
Versions: 6
Compression:
Stored size: 427 Bytes
Contents
# frozen_string_literal: true class Zendesk2::GetRequestedTickets include Zendesk2::Request request_method :get request_path { |r| "/users/#{r.requester_id}/tickets/requested.json" } page_params! def requester_id params.fetch('requester_id').to_i end def mock(_params = {}) tickets = data[:tickets].values.select { |u| u['requester_id'] == requester_id } page(tickets, root: 'tickets') end end
Version data entries
6 entries across 6 versions & 1 rubygems