Class: RightAws::AsInterface::DescribeLaunchConfigurationsParser
- Inherits:
-
RightAWSParser
- Object
- RightAWSParser
- RightAws::AsInterface::DescribeLaunchConfigurationsParser
- Defined in:
- lib/as/right_as_interface.rb
Overview
PARSERS: Launch Configurations
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
#reset ⇒ Object
637 638 639 640 |
# File 'lib/as/right_as_interface.rb', line 637 def reset @p = 'DescribeLaunchConfigurationsResponse/DescribeLaunchConfigurationsResult/LaunchConfigurations' @result = { :launch_configurations => []} end |
#tagend(name) ⇒ Object
615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 |
# File 'lib/as/right_as_interface.rb', line 615 def tagend(name) case name when 'CreatedTime' then @item[:created_time] = Time::parse(@text) when 'InstanceType' then @item[:instance_type] = @text when 'KeyName' then @item[:key_name] = @text when 'ImageId' then @item[:image_id] = @text when 'KernelId' then @item[:kernel_id] = @text when 'RamdiskId' then @item[:ramdisk_id] = @text when 'LaunchConfigurationName' then @item[:launch_configuration_name] = @text when 'UserData' then @item[:user_data] = @text when 'member' case @xmlpath when "#@p/member/BlockDeviceMappings" then @item[:block_device_mappings] << @text when "#@p/member/SecurityGroups" then @item[:security_groups] << @text when @p @item[:block_device_mappings].sort! @item[:security_groups].sort! @result[:launch_configurations] << @item end when 'NextToken' then @result[:next_token] = @text end end |
#tagstart(name, attributes) ⇒ Object
:nodoc:
605 606 607 608 609 610 611 612 613 614 |
# File 'lib/as/right_as_interface.rb', line 605 def (name, attributes) case name when 'member' case @xmlpath when @p @item = { :block_device_mappings => [], :security_groups => [] } end end end |