Class: RightAws::AcwInterface::ListMetricsParser
- Inherits:
-
RightAWSParser
- Object
- RightAWSParser
- RightAws::AcwInterface::ListMetricsParser
- Defined in:
- lib/acw/right_acw_interface.rb
Overview
:nodoc:
Constant Summary
Constants inherited from RightAWSParser
RightAWSParser::DEFAULT_XML_LIBRARY
Instance Attribute Summary
Attributes inherited from RightAWSParser
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
241 242 243 244 |
# File 'lib/acw/right_acw_interface.rb', line 241 def reset @p = 'ListMetricsResponse/ListMetricsResult/Metrics' @result = [] end |
#tagend(name) ⇒ Object
228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/acw/right_acw_interface.rb', line 228 def tagend(name) case name when 'MeasureName' then @item[:measure_name] = @text when 'Namespace' then @item[:namespace] = @text when 'Name' then @dname = @text when 'Value' then @dvalue = @text when 'member' case @xmlpath when "#@p/member/Dimensions" then @item[:dimentions][@dname] = @dvalue when @p then @result << @item end end end |
#tagstart(name, attributes) ⇒ Object
220 221 222 223 224 225 226 227 |
# File 'lib/acw/right_acw_interface.rb', line 220 def (name, attributes) case name when 'member' case @xmlpath when @p then @item = { :dimentions => {} } end end end |