Sha256: c8dd8db920e5a5747ee4ff158bedf44dc70955a45e0c8345e07d536511ac4fad
Contents?: true
Size: 563 Bytes
Versions: 56
Compression:
Stored size: 563 Bytes
Contents
class Zendesk2::Client class Real def get_organization_users(params={}) id = params["id"] page_params = Zendesk2.paging_parameters(params) request( :params => page_params, :method => :get, :path => "/organizations/#{id}/users.json", ) end end # Real class Mock def get_organization_users(params={}) id = params["id"] page(params, :users, "/organizations/#{id}/users.json", "users", filter: lambda{|c| c.select{|u| u["organization_id"] == id}}) end end # Mock end
Version data entries
56 entries across 56 versions & 1 rubygems