Sha256: a82cc424a596f8fbbdd62c2be5aac2a1bccafe8f528e03bdffa9140a4c47340c

Contents?: true

Size: 671 Bytes

Versions: 4

Compression:

Stored size: 671 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 'RequestId'
              response[name] = @value
            end
          end

        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-0.3.17 lib/fog/aws/parsers/iam/list_groups.rb
fog-0.3.16 lib/fog/aws/parsers/iam/list_groups.rb
fog-0.3.15 lib/fog/aws/parsers/iam/list_groups.rb
fog-0.3.14 lib/fog/aws/parsers/iam/list_groups.rb