Sha256: 8d5da0a5e3fa7395ee664e8d6863bc74cc82e5420d32c63c8216fd8435706ba7
Contents?: true
Size: 386 Bytes
Versions: 4
Compression:
Stored size: 386 Bytes
Contents
class Zendesk2::Client::GetRequestedTickets < Zendesk2::Client::Request request_method :get request_path { |r| "/users/#{r.user_id}/tickets/requested.json" } page_params! def user_id params.fetch("user_id").to_i end def mock(params={}) tickets = self.data[:tickets].values.select { |u| u["requester_id"] == user_id } page(tickets, root: "tickets") end end
Version data entries
4 entries across 4 versions & 1 rubygems