Sha256: a99b98e06b5307bfa1b4790ccd89a146eeb99bca0f1bd158fd922c9c42eb370d

Contents?: true

Size: 672 Bytes

Versions: 30

Compression:

Stored size: 672 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module IAM

        class ListUsers < Fog::Parsers::Base

          def reset
            @user = {}
            @response = { 'Users' => [] }
          end

          def end_element(name)
            case name
            when 'Arn', 'UserId', 'UserName', 'Path'
              @user[name] = @value
            when 'member'
              @response['Users'] << @user
              @user = {}
            when 'IsTruncated'
              response[name] = (@value == 'true')
            when 'Marker', 'RequestId'
              response[name] = @value
            end
          end

        end

      end
    end
  end
end

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
fog-0.7.2 lib/fog/aws/parsers/iam/list_users.rb
fog-0.7.1 lib/fog/aws/parsers/iam/list_users.rb
fog-0.7.0 lib/fog/aws/parsers/iam/list_users.rb
fog-0.6.0 lib/fog/aws/parsers/iam/list_users.rb
fog-0.5.3 lib/fog/aws/parsers/iam/list_users.rb
fog-0.5.2 lib/fog/aws/parsers/iam/list_users.rb
fog-0.5.1 lib/fog/aws/parsers/iam/list_users.rb
fog-0.5.0 lib/fog/aws/parsers/iam/list_users.rb
phpfog-fog-0.4.1.3 lib/fog/aws/parsers/iam/list_users.rb
phpfog-fog-0.4.1.2 lib/fog/aws/parsers/iam/list_users.rb
phpfog-fog-0.4.1.1 lib/fog/aws/parsers/iam/list_users.rb
phpfog-fog-0.4.1 lib/fog/aws/parsers/iam/list_users.rb
fog-0.4.1 lib/fog/aws/parsers/iam/list_users.rb
fog-0.4.0 lib/fog/aws/parsers/iam/list_users.rb
fog-0.3.34 lib/fog/aws/parsers/iam/list_users.rb
fog-0.3.33 lib/fog/aws/parsers/iam/list_users.rb
fog-0.3.32 lib/fog/aws/parsers/iam/list_users.rb
fog-0.3.31 lib/fog/aws/parsers/iam/list_users.rb
fog-0.3.30 lib/fog/aws/parsers/iam/list_users.rb
fog-0.3.29 lib/fog/aws/parsers/iam/list_users.rb