Class: RightAws::Ec2::QEc2DescribeDhcpOptionsParser

Inherits:
RightAWSParser show all
Defined in:
lib/ec2/right_ec2_vpc.rb

Overview

:nodoc:

Constant Summary

Constants inherited from RightAWSParser

RightAWSParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary

Attributes inherited from RightAWSParser

#full_tag_name, #result, #tag, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from RightAWSParser

#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=

Constructor Details

This class inherits a constructor from RightAws::RightAWSParser

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RightAws::RightAWSParser

Instance Method Details

#resetObject



468
469
470
471
472
# File 'lib/ec2/right_ec2_vpc.rb', line 468

def reset
  @p1 = 'DescribeDhcpOptionsResponse/dhcpOptionsSet/item'
  @p2 = 'CreateDhcpOptionsResponse/dhcpOptions'
  @result = []
end

#tagend(name) ⇒ Object



457
458
459
460
461
462
463
464
465
466
467
# File 'lib/ec2/right_ec2_vpc.rb', line 457

def tagend(name)
  case name
  when 'dhcpOptionsId' then @item[:dhcp_options_id] = @text
  when 'key'           then @conf_item_key = @text
  when 'value'         then (@item[:dhcp_configuration_set][@conf_item_key] ||= []) << @text
  end
  case full_tag_name
  when @p1, @p2
    @result << @item
  end
end

#tagstart(name, attributes) ⇒ Object



451
452
453
454
455
456
# File 'lib/ec2/right_ec2_vpc.rb', line 451

def tagstart(name, attributes)
  case full_tag_name
  when @p1, @p2
    @item = { :dhcp_configuration_set => {} }
  end
end