class Fog::Parsers::Redshift::AWS::ClusterSecurityGroupParser
Public Instance Methods
end_element(name)
click to toggle source
Calls superclass method
# File lib/fog/aws/parsers/redshift/cluster_security_group_parser.rb, line 33 def end_element(name) super case name when 'ClusterSecurityGroupName', 'Description' @cluster_security_group[name] = value when 'EC2SecurityGroupName', 'EC2SecurityGroupOwnerId', 'CIDRIP', 'Status' @list[name] = value when 'EC2SecurityGroup', 'IPRange' @cluster_security_group[@list_name] << {name => @list} @list = {} end end
fresh_cluster_security_group()
click to toggle source
# File lib/fog/aws/parsers/redshift/cluster_security_group_parser.rb, line 20 def fresh_cluster_security_group {'EC2SecurityGroups' => [], 'IPRanges' => []} end
reset()
click to toggle source
:cluster_security_group_name - (String) :description - (String) :ec_2_security_groups - (Array)
:status - (String) :ec2_security_group_name - (String) :ec2_security_group_owner_id - (String)
:ip_ranges - (Array)
:status - (String) :cidrip - (String)
# File lib/fog/aws/parsers/redshift/cluster_security_group_parser.rb, line 16 def reset @cluster_security_group = fresh_cluster_security_group end
start_element(name, attrs = [])
click to toggle source
Calls superclass method
# File lib/fog/aws/parsers/redshift/cluster_security_group_parser.rb, line 24 def start_element(name, attrs = []) super case name when 'EC2SecurityGroups', 'IPRanges' @list = {} @list_name = name end end