Sha256: 9ac931a8075668495b2fd7f0e9871f0de866c0ea3cc5ccf768b79d0536b2bd9e

Contents?: true

Size: 681 Bytes

Versions: 32

Compression:

Stored size: 681 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module IAM

        class ListGroups < Fog::Parsers::Base

          def reset
            @group = {}
            @response = { 'Groups' => [] }
          end

          def end_element(name)
            case name
            when 'Arn', 'GroupId', 'GroupName', 'Path'
              @group[name] = @value
            when 'member'
              @response['Groups'] << @group
              @group = {}
            when 'IsTruncated'
              response[name] = (@value == 'true')
            when 'Marker', 'RequestId'
              response[name] = @value
            end
          end

        end

      end
    end
  end
end

Version data entries

32 entries across 32 versions & 3 rubygems

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