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
Eugene Howe f7849095b0 rds enhancements
* default engine parameters
* mocks around parameter groups
2016-01-21 11:00:54 -05:00

30 lines
601 B
Ruby

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