Sha256: ec43d9041cde5c8d826202ab5e26852d29b2929ad1215e42fa4e84b87aa927ad

Contents?: true

Size: 628 Bytes

Versions: 1

Compression:

Stored size: 628 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module IAM

        require 'rackspace-fog/aws/parsers/iam/base_instance_profile'

        class InstanceProfile < Fog::Parsers::AWS::IAM::BaseInstanceProfile

          def reset
            super
            @response = {}
          end


          def finished_instance_profile(profile)
            @response['InstanceProfile'] = profile
          end

          def end_element(name)
            
            case name
            when 'RequestId'
              @response[name] = value
            end
            super
          end

        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/parsers/iam/instance_profile.rb