Sha256: 4f00c5bec25400a8e722157a59333ae35521afc49c81f7864bcf9ef878016f4c

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

module Fog
  module Parsers
    module AWS
      module RDS

        class DBEngineVersionParser < Fog::Parsers::Base

          def reset
            @db_engine_version = fresh_engine_version
          end

          def fresh_engine_version
            {}
          end

          def start_element(name, attrs = [])
            super

          end

          def end_element(name)
            case name
            when 'DBEngineDescription' then @db_engine_version['DBEngineDescription'] = @value
            when 'DBEngineVersionDescription' then @db_engine_version['DBEngineVersionDescription'] = @value
            when 'DBParameterGroupFamily' then @db_engine_version['DBParameterGroupFamily'] = @value
            when 'DBEngineVersionIdentifier' then @db_engine_version['DBEngineVersionIdentifier'] = @value
            when 'Engine' then @db_engine_version['Engine'] = @value
            when 'EngineVersion' then @db_engine_version['EngineVersion'] = @value
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-1.22.0 lib/fog/aws/parsers/rds/db_engine_version_parser.rb
fog-1.21.0 lib/fog/aws/parsers/rds/db_engine_version_parser.rb