Sha256: 69e0f37754dc4fedae6b7c1af674905bcc856d1990b084b3b6004b01045e1d42

Contents?: true

Size: 669 Bytes

Versions: 59

Compression:

Stored size: 669 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

59 entries across 59 versions & 18 rubygems

Version Path
hpfog-0.0.20 lib/fog/aws/parsers/iam/list_users.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/aws/parsers/iam/list_users.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/aws/parsers/iam/list_users.rb
fog-nirvanix-1.8.2 lib/fog/aws/parsers/iam/list_users.rb
fog-nirvanix-1.8.1 lib/fog/aws/parsers/iam/list_users.rb
fog-1.10.1 lib/fog/aws/parsers/iam/list_users.rb
fog-parser-fix-1.6.1 lib/fog/aws/parsers/iam/list_users.rb
fog-test-again-1.6.0 lib/fog/aws/parsers/iam/list_users.rb
fog-test-me-1.10.0 lib/fog/aws/parsers/iam/list_users.rb
fog-parser-fix-1.6.0 lib/fog/aws/parsers/iam/list_users.rb
fog-1.10.0 lib/fog/aws/parsers/iam/list_users.rb
fog-1.9.0 lib/fog/aws/parsers/iam/list_users.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/aws/parsers/iam/list_users.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/aws/parsers/iam/list_users.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/aws/parsers/iam/list_users.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/aws/parsers/iam/list_users.rb
fog-sgonyea-1.8.1 lib/fog/aws/parsers/iam/list_users.rb
fog-1.8.0 lib/fog/aws/parsers/iam/list_users.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/aws/parsers/iam/list_users.rb
fog-1.7.0 lib/fog/aws/parsers/iam/list_users.rb