Class: Fog::Parsers::Redshift::AWS::DescribeClusterSecurityGroups
- Inherits:
-
ClusterSecurityGroupParser
- Object
- Nokogiri::XML::SAX::Document
- Base
- ClusterSecurityGroupParser
- Fog::Parsers::Redshift::AWS::DescribeClusterSecurityGroups
- Defined in:
- lib/fog/aws/parsers/redshift/describe_cluster_security_groups.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #end_element(name) ⇒ Object
-
#reset ⇒ Object
:marker - (String) :cluster_security_groups - (Array).
- #start_element(name, attrs = []) ⇒ Object
Methods inherited from ClusterSecurityGroupParser
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
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/fog/aws/parsers/redshift/describe_cluster_security_groups.rb', line 23 def end_element(name) super case name when 'Marker' @response[name] = value when 'ClusterSecurityGroup' @response['ClusterSecurityGroups'] << { name => @cluster_security_group } @cluster_security_group = fresh_cluster_security_group end end |
#reset ⇒ Object
:marker - (String) :cluster_security_groups - (Array)
11 12 13 |
# File 'lib/fog/aws/parsers/redshift/describe_cluster_security_groups.rb', line 11 def reset @response = { 'ClusterSecurityGroups' => [] } end |
#start_element(name, attrs = []) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/fog/aws/parsers/redshift/describe_cluster_security_groups.rb', line 15 def start_element(name, attrs = []) super case name when 'ClusterSecurityGroups' @cluster_security_group = fresh_cluster_security_group end end |