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

Version Path
zendesk2-1.2.9 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.2.7 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.2.6 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.2.5 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.2.4 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.2.3 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.2.2 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.2.1 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.2.0 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.1.3 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.1.2 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.0.0 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-0.5.4 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-0.5.3 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-0.5.2 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-0.5.1 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-0.5.0 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-0.4.5 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-0.4.4 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-0.4.3 lib/zendesk2/client/requests/get_organization_users.rb