class Fog::Parsers::Redshift::AWS::ClusterSubnetGroupParser

Public Instance Methods

end_element(name) click to toggle source
Calls superclass method
# File lib/fog/aws/parsers/redshift/cluster_subnet_group_parser.rb, line 32
def end_element(name)
  super
  case name
  when 'ClusterSubnetGroupName', 'Desciption', 'VpcId', 'SubnetGroupStatus'
    @response[name] = value
  when 'SubnetIdentifier', 'SubnetStatus'
    @subnet[name] = value
  when 'Name'
    @subnet['SubnetAvailabilityZone'][name] = value
  when 'Subnet'
    @response['Subnets'] << {name => @subnet}
    @subnet = fresh_subnet
  end
end
fresh_subnet() click to toggle source
# File lib/fog/aws/parsers/redshift/cluster_subnet_group_parser.rb, line 20
def fresh_subnet
  {'SubnetAvailabilityZone'=>{}}
end
reset() click to toggle source

:cluster_subnet_group_name - (String) :description - (String) :vpc_id - (String) :subnet_group_status - (String) :subnets - (Array)

:subnet_identifier - (String)
:subnet_availability_zone - (Hash)
  :name - (String)
:subnet_status - (String)
# File lib/fog/aws/parsers/redshift/cluster_subnet_group_parser.rb, line 16
def reset
  @response = { 'Subnets' => [] }
end
start_element(name, attrs = []) click to toggle source
Calls superclass method
# File lib/fog/aws/parsers/redshift/cluster_subnet_group_parser.rb, line 24
def start_element(name, attrs = [])
  super
  case name
  when 'Subnets'
    @subnet = fresh_subnet
  end
end