Sha256: 444dbc4dc5d8cd04109308c76800c13b501e5541b4732a642947ea8b84dd318b

Contents?: true

Size: 650 Bytes

Versions: 8

Compression:

Stored size: 650 Bytes

Contents

class Zendesk2::Client
  class Real
    def get_organization_users(params={})
      id          = require_parameters(params, "id").to_s
      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 = require_parameters(params, "id").to_s

      page(params, :users, "/organizations/#{id}/users.json", "users",
           :filter => lambda { |c| c.select { |u| u["organization_id"].to_s == id } }
          )
    end
  end # Mock
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
zendesk2-1.4.2 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.4.1 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.4.0 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.3.3 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.3.2 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.3.1 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.3.0 lib/zendesk2/client/requests/get_organization_users.rb
zendesk2-1.2.10 lib/zendesk2/client/requests/get_organization_users.rb