Sha256: 97ead80d4540d304a6efc14468d4fb31449a0762987b3853ab274941812cf05b

Contents?: true

Size: 885 Bytes

Versions: 8

Compression:

Stored size: 885 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module IAM
        class ListServerCertificates < Fog::Parsers::Base
          def reset
            @response = { 'Certificates' => [] }
            reset_certificate
          end

          def reset_certificate
            @certificate = {}
          end

          def end_element(name)
            case name
            when 'Arn', 'Path', 'ServerCertificateId', 'ServerCertificateName'
              @certificate[name] = value
            when 'UploadDate'
              @certificate[name] = Time.parse(value)
            when 'member'
              @response['Certificates'] << @certificate
              reset_certificate
            when 'IsTruncated'
              @response[name] = !!value
            when 'Marker'
              @response[name] = value
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-aws-3.30.0 lib/fog/aws/parsers/iam/list_server_certificates.rb
fog-aws-3.29.0 lib/fog/aws/parsers/iam/list_server_certificates.rb
fog-aws-3.28.0 lib/fog/aws/parsers/iam/list_server_certificates.rb
fog-aws-3.27.0 lib/fog/aws/parsers/iam/list_server_certificates.rb
fog-aws-3.26.0 lib/fog/aws/parsers/iam/list_server_certificates.rb
fog-aws-3.25.0 lib/fog/aws/parsers/iam/list_server_certificates.rb
fog-aws-3.24.0 lib/fog/aws/parsers/iam/list_server_certificates.rb
fog-aws-3.23.0 lib/fog/aws/parsers/iam/list_server_certificates.rb