Class: RightAws::Ec2::QEc2DescribeLicensesParser
- Inherits:
-
RightAWSParser
- Object
- RightAWSParser
- RightAws::Ec2::QEc2DescribeLicensesParser
- Defined in:
- lib/ec2/right_ec2_windows_mobility.rb
Overview
PARSERS: Images
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
77 78 79 |
# File 'lib/ec2/right_ec2_windows_mobility.rb', line 77 def reset @result = [] end |
#tagend(name) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/ec2/right_ec2_windows_mobility.rb', line 61 def tagend(name) case name when 'licenseId' then @item[:license_id] = @text when 'type' then @item[:type] = @text when 'pool' then @item[:pool] = @text when 'capacity' then @capacity_item[:capacity] = @text.to_i when 'instanceCapacity' then @capacity_item[:instance_capacity] = @text.to_i when 'state' then @capacity_item[:state] = @text when 'earliestAllowedDeactivationTime' then @capacity_item[:earliest_allowed_deactivation_time] = @text else case full_tag_name when %r{/capacitySet/item$} then @item[:capacities] << @capacity_item when %r{/licenseSet/item$} then @result << @item end end end |
#tagstart(name, attributes) ⇒ Object
:nodoc:
55 56 57 58 59 60 |
# File 'lib/ec2/right_ec2_windows_mobility.rb', line 55 def (name, attributes) case full_tag_name when %r{/licenseSet/item$} then @item = { :capacities => [] } when %r{/capacitySet/item$} then @capacity_item = {} end end |