# File lib/fog/aws/requests/iam/get_user.rb, line 38 def get_user(user, options = {}) raise Fog::AWS::IAM::NotFound.new( "The user with name #{user} cannot be found." ) unless self.data[:users].key?(user) Excon::Response.new.tap do |response| response.body = {'User' => { 'UserId' => data[:users][user][:user_id], 'Path' => data[:users][user][:path], 'UserName' => user, 'Arn' => (data[:users][user][:arn]).strip }, 'RequestId' => Fog::AWS::Mock.request_id } response.status = 200 end end