mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
31 lines
601 B
Ruby
31 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
|