Sha256: 320ddccc7da6be987a79c352e02402c75dcdce80d0e4a2ce60efb1652a14ee30

Contents?: true

Size: 557 Bytes

Versions: 4

Compression:

Stored size: 557 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module IAM

        class GetUserPolicy < Fog::Parsers::Base
        # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_GetUserPolicy.html

          def reset
            @response = {}
          end

          def end_element(name)
            case name
            when 'UserName', 'PolicyName', 'PolicyDocument'
              @response[name] = @value
            when 'RequestId'
              @response[name] = @value
            end
          end

        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-0.7.2 lib/fog/aws/parsers/iam/get_user_policy.rb
fog-0.7.1 lib/fog/aws/parsers/iam/get_user_policy.rb
fog-0.7.0 lib/fog/aws/parsers/iam/get_user_policy.rb
fog-0.6.0 lib/fog/aws/parsers/iam/get_user_policy.rb