lib/globus_client/identity.rb in globus_client-0.4.0 vs lib/globus_client/identity.rb in globus_client-0.5.0

- old
+ new

@@ -5,21 +5,21 @@ class Identity def initialize(config) @config = config end - def get_identity_id(sunetid) - @email = "#{sunetid}@stanford.edu" + def get_identity_id(user_id) + @email = user_id response = lookup_identity UnexpectedResponse.call(response) unless response.success? data = JSON.parse(response.body) extract_id(data) end - def exists?(sunetid) - get_identity_id(sunetid) + def exists?(user_id) + get_identity_id(user_id) true rescue false end