Sha256: 29757e8c8d42adfa68c6e2d89dea29ca3d089dc777c4a569925d9272d258f1da

Contents?: true

Size: 637 Bytes

Versions: 9

Compression:

Stored size: 637 Bytes

Contents

class Zendesk2::Client
  class Real
    def get_user_identities(params={})
      user_id     = require_parameters(params, "user_id")
      page_params = Zendesk2.paging_parameters(params)

      request(
        :params => page_params,
        :method => :get,
        :path   => "/users/#{user_id}/identities.json",
      )
    end
  end # Real

  class Mock
    def get_user_identities(params={})
      user_id = require_parameters(params, "user_id")

      page(params, :identities, "/users/#{user_id}/identities.json", "identities", filter: lambda { |c| c.select { |a| a["user_id"].to_s == user_id.to_s } })
    end
  end # Mock
end

Version data entries

9 entries across 9 versions & 1 rubygems

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