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:
2529 2530 2531 2532 |
# File 'lib/ec2/ec2.rb', line 2529 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
2553 2554 2555 |
# File 'lib/ec2/ec2.rb', line 2553 def reset @result = [] end |
#tagend(name) ⇒ Object
2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 |
# File 'lib/ec2/ec2.rb', line 2538 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
2534 2535 2536 |
# File 'lib/ec2/ec2.rb', line 2534 def (name, attribute) @vpc = {} if name == @wrapper end |