lib/zendesk2/client/requests/get_user_identities.rb in zendesk2-1.2.3 vs lib/zendesk2/client/requests/get_user_identities.rb in zendesk2-1.2.4
- old
+ new
@@ -1,9 +1,9 @@
class Zendesk2::Client
class Real
def get_user_identities(params={})
- user_id = params["user_id"]
+ user_id = require_parameters(params, "user_id")
page_params = Zendesk2.paging_parameters(params)
request(
:params => page_params,
:method => :get,
@@ -12,11 +12,11 @@
end
end # Real
class Mock
def get_user_identities(params={})
- user_id = params["user_id"]
+ 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"] == user_id}})
+ page(params, :identities, "/users/#{user_id}/identities.json", "identities", filter: lambda { |c| c.select { |a| a["user_id"] == user_id } })
end
end # Mock
end