2011-02-20 22:01:28 -05:00
|
|
|
module Fog
|
|
|
|
module Parsers
|
2011-06-16 19:28:54 -04:00
|
|
|
module Compute
|
|
|
|
module Voxel
|
2011-02-20 22:01:28 -05:00
|
|
|
|
|
|
|
class VoxcloudDelete < Fog::Parsers::Base
|
|
|
|
|
|
|
|
def reset
|
2011-02-23 18:00:56 -05:00
|
|
|
@response = {}
|
2011-02-20 22:01:28 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def start_element(name, attrs = [])
|
|
|
|
super
|
|
|
|
|
|
|
|
case name
|
|
|
|
when 'rsp'
|
2011-02-23 18:00:56 -05:00
|
|
|
@response['stat'] = attr_value('stat', attrs)
|
2011-02-20 22:01:28 -05:00
|
|
|
when 'err'
|
2011-02-23 18:00:56 -05:00
|
|
|
@response['err'] = {
|
|
|
|
'code' => attr_value('code', attrs),
|
|
|
|
'msg' => attr_value('msg', attrs)
|
|
|
|
}
|
2011-02-20 22:01:28 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|