Class: Aws::Ec2::QEc2VpcsParser
Overview
PARSERS: Vpc
Constant Summary
Constants inherited from AwsParser
AwsParser::DEFAULT_XML_LIBRARY
Instance Attribute Summary
Attributes inherited from AwsParser
Instance Method Summary collapse
-
#initialize(wrapper, opts = {}) ⇒ QEc2VpcsParser
constructor
:nodoc:.
- #reset ⇒ Object
- #tagend(name) ⇒ Object
- #tagstart(name, attribute) ⇒ Object
Methods inherited from AwsParser
#method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=
Constructor Details
#initialize(wrapper, opts = {}) ⇒ QEc2VpcsParser
:nodoc:
2439 2440 2441 2442 |
# File 'lib/ec2/ec2.rb', line 2439 def initialize(wrapper, opts = {}) super(opts) @wrapper = wrapper end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Aws::AwsParser
Instance Method Details
#reset ⇒ Object
2463 2464 2465 |
# File 'lib/ec2/ec2.rb', line 2463 def reset @result = [] end |
#tagend(name) ⇒ Object
2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 |
# File 'lib/ec2/ec2.rb', line 2448 def tagend(name) case name when 'vpcId' then @vpc[:vpc_id] = @text when 'state' then @vpc[:state] = @text when 'cidrBlock' then @vpc[:cidr_block] = @text when 'dhcpOptionsId' then @vpc[:dhcp_options_id] = @text when @wrapper @result << @vpc end end |
#tagstart(name, attribute) ⇒ Object
2444 2445 2446 |
# File 'lib/ec2/ec2.rb', line 2444 def (name, attribute) @vpc = {} if name == @wrapper end |