    # File lib/fog/aws/models/iam/policies.rb, line 19
            def all
              # AWS method get_user_policy only returns an array of policy names, this is kind of useless,
              # that's why it has to loop through the list to get the details of each element. I don't like it because it makes this method slow
              policy_names = service.list_user_policies(@username).body['PolicyNames'] # it returns an array
              policies = []
              policy_names.each do |policy_name|
                policies << service.get_user_policy(policy_name,@username).body['Policy']
              end
              load(policies) # data is an array of attribute hashes
            end