Class: Fog::Parsers::Redshift::AWS::DescribeClusterParameterGroups
- Inherits:
-
Base
- Object
- Base
- Fog::Parsers::Redshift::AWS::DescribeClusterParameterGroups
- Defined in:
- lib/fog/aws/parsers/redshift/describe_cluster_parameter_groups.rb
Instance Method Summary collapse
- #end_element(name) ⇒ Object
-
#reset ⇒ Object
:marker - (String) :parameter_groups - (Array) :parameter_group_name - (String) :parameter_group_family - (String) :description - (String).
- #start_element(name, attrs = []) ⇒ Object
Instance Method Details
#end_element(name) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/fog/aws/parsers/redshift/describe_cluster_parameter_groups.rb', line 24 def end_element(name) super case name when 'Marker' @response[name] = value when 'ParameterGroupName', 'ParameterGroupFamily', 'Description' @parameter_group[name] = value when 'ClusterParameterGroup' @response['ParameterGroups'] << {name => @parameter_group} @parameter_group = {} end end |
#reset ⇒ Object
:marker - (String) :parameter_groups - (Array)
:parameter_group_name - (String)
:parameter_group_family - (String)
:description - (String)
12 13 14 |
# File 'lib/fog/aws/parsers/redshift/describe_cluster_parameter_groups.rb', line 12 def reset @response = { 'ParameterGroups' => [] } end |
#start_element(name, attrs = []) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/fog/aws/parsers/redshift/describe_cluster_parameter_groups.rb', line 16 def start_element(name, attrs = []) super case name when 'ParameterGroups' @parameter_group = {} end end |