Class: Rightscale::SliceErrorResponseParser

Inherits:
RightSlicehostParser show all
Defined in:
lib/slicehost_base.rb

Overview

:nodoc:

Constant Summary

Constants inherited from RightSlicehostParser

RightSlicehostParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary collapse

Attributes inherited from RightSlicehostParser

#result, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from RightSlicehostParser

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

Constructor Details

This class inherits a constructor from Rightscale::RightSlicehostParser

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Rightscale::RightSlicehostParser

Instance Attribute Details

#errorsObject

array of hashes: error/message



593
594
595
# File 'lib/slicehost_base.rb', line 593

def errors
  @errors
end

Instance Method Details

#resetObject



599
600
601
# File 'lib/slicehost_base.rb', line 599

def reset
  @errors = []
end

#tagend(name) ⇒ Object



594
595
596
597
598
# File 'lib/slicehost_base.rb', line 594

def tagend(name)
  case name
    when 'error' then @errors << @text
  end
end