Class: Fog::Parsers::Redshift::AWS::DescribeClusterParameterGroups
- Inherits:
-
Base
- Object
- Nokogiri::XML::SAX::Document
- Base
- Fog::Parsers::Redshift::AWS::DescribeClusterParameterGroups
- Defined in:
- lib/fog/aws/parsers/redshift/describe_cluster_parameter_groups.rb
Instance Attribute Summary
Attributes inherited from Base
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
Methods inherited from Base
#attr_value, #characters, #end_element_namespace, #initialize, #start_element_namespace, #value
Constructor Details
This class inherits a constructor from Fog::Parsers::Base
Instance Method Details
#end_element(name) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/fog/aws/parsers/redshift/describe_cluster_parameter_groups.rb', line 25 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
13 14 15 |
# File 'lib/fog/aws/parsers/redshift/describe_cluster_parameter_groups.rb', line 13 def reset @response = { 'ParameterGroups' => [] } end |
#start_element(name, attrs = []) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/fog/aws/parsers/redshift/describe_cluster_parameter_groups.rb', line 17 def start_element(name, attrs = []) super case name when 'ParameterGroups' @parameter_group = {} end end |