1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/parsers/rds/db_parameter_parser.rb

31 lines
601 B
Ruby
Raw Normal View History

module Fog
module Parsers
module AWS
module RDS
class DBParameterParser < Fog::Parsers::Base
def reset
@db_parameter = new_db_parameter
end
def new_db_parameter
{}
end
def start_element(name, attrs = [])
super
end
def end_element(name)
case name
when 'IsModifiable'
@value == "true" ? true : false
else
@db_parameter[name] = @value.strip
end
end
end
end
end
end
end