class Fog::Parsers::AWS::Compute::DescribeVpcAttribute
Public Instance Methods
end_element(name)
click to toggle source
# File lib/fog/aws/parsers/compute/describe_vpc_attribute.rb, line 22 def end_element(name) if @in_enable_dns_support case name when 'value' @response['enableDnsSupport'] = (value == 'true') when 'enableDnsSupport' @in_enable_dns_support = false end elsif @in_enable_dns_hostnames case name when 'value' @response['enableDnsHostnames'] = (value == 'true') when 'enableDnsHostnames' @in_enable_dns_hostnames = false end else case name when 'requestId', 'vpcId' @response[name] = value end end end
reset()
click to toggle source
# File lib/fog/aws/parsers/compute/describe_vpc_attribute.rb, line 6 def reset @response = { } @in_enable_dns_support = false @in_enable_dns_hostnames = false end
start_element(name, attrs = [])
click to toggle source
Calls superclass method
# File lib/fog/aws/parsers/compute/describe_vpc_attribute.rb, line 12 def start_element(name, attrs = []) super case name when 'enableDnsSupport' @in_enable_dns_support = true when 'enableDnsHostnames' @in_enable_dns_hostnames = true end end