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