Sha256: 84e27d25a635b3ca7377280d3031d87ff6cb7075a68614c65c48ec96ec03d88e
Contents?: true
Size: 401 Bytes
Versions: 21
Compression:
Stored size: 401 Bytes
Contents
class Zendesk2::Client::GetUserIdentity < Zendesk2::Client::Request request_path { |r| "/users/#{r.user_id}/identities/#{r.user_identity_id}.json" } def user_identity_id params.fetch("user_identity").fetch("id").to_i end def user_id params.fetch("user_identity").fetch("user_id").to_i end def mock mock_response("identity" => find!(:identities, user_identity_id)) end end
Version data entries
21 entries across 21 versions & 1 rubygems