Class: Fog::Errors::Parser

Inherits:
Parsers::Base
  • Object
show all
Defined in:
lib/fog/errors.rb

Instance Attribute Summary

Attributes inherited from Parsers::Base

#response

Instance Method Summary collapse

Methods inherited from Parsers::Base

#characters, #initialize, #reset, #start_element

Constructor Details

This class inherits a constructor from Fog::Parsers::Base

Instance Method Details

#end_element(name) ⇒ Object



135
136
137
138
139
140
# File 'lib/fog/errors.rb', line 135

def end_element(name)
  case name
  when 'Code', 'Message'
    @response[name] = @value
  end
end