Sha256: ffefb585fe0e118bcae06494eb27da9c67370d2fafcf77269c959efaf646c89a

Contents?: true

Size: 675 Bytes

Versions: 1

Compression:

Stored size: 675 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module IAM

        require 'rackspace-fog/aws/parsers/iam/role_parser'
        class ListRoles < Fog::Parsers::AWS::IAM::RoleParser

          def reset
            super
            @response = { 'Roles' => [] }
          end

          def finished_role(role)
            @response['Roles'] << role
          end
          
          def end_element(name)
            case name
            when 'RequestId', 'Marker'
              @response[name] = value
            when 'IsTruncated'
              @response[name] = (value == 'true')
            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/list_roles.rb