mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
31 lines
602 B
Ruby
31 lines
602 B
Ruby
module Fog
|
|
module Parsers
|
|
module Compute
|
|
module Voxel
|
|
|
|
class VoxcloudDelete < Fog::Parsers::Base
|
|
|
|
def reset
|
|
@response = {}
|
|
end
|
|
|
|
def start_element(name, attrs = [])
|
|
super
|
|
|
|
case name
|
|
when 'rsp'
|
|
@response['stat'] = attr_value('stat', attrs)
|
|
when 'err'
|
|
@response['err'] = {
|
|
'code' => attr_value('code', attrs),
|
|
'msg' => attr_value('msg', attrs)
|
|
}
|
|
end
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|