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
#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
240 241 242 243 |
# File 'lib/acw/right_acw_interface.rb', line 240 def reset @p = 'ListMetricsResponse/ListMetricsResult/Metrics' @result = [] end |
#tagend(name) ⇒ Object
227 228 229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/acw/right_acw_interface.rb', line 227 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
219 220 221 222 223 224 225 226 |
# File 'lib/acw/right_acw_interface.rb', line 219 def (name, attributes) case name when 'member' case @xmlpath when @p then @item = { :dimentions => {} } end end end |