lib/cfoundry/v2/user.rb in cfoundry-3.0.0 vs lib/cfoundry/v2/user.rb in cfoundry-3.0.1

- old
+ new

@@ -42,11 +42,11 @@ def email # if the email collection is nil or empty? collect from UAA get_meta_from_uaa if @emails.nil? return unless @emails && @emails.first - @emails.first["value"] + @emails.first[:value] end def given_name get_meta_from_uaa if @name.nil? @@ -78,15 +78,15 @@ private def get_meta_from_uaa user = @client.base.uaa.user(guid) return if user.nil? - return if not user['error'].nil? + return if not user[:error].nil? - @emails = user["emails"] + @emails = user[:emails] @name ||= {} - @name[:familyName] = user["name"]["familyname"] - @name[:givenName] = user["name"]["givenname"] + @name[:familyName] = user[:name][:familyname] + @name[:givenName] = user[:name][:givenname] end end end end