1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/compute/parsers/voxel/voxcloud_create.rb
2011-02-23 15:38:59 -08:00

33 lines
604 B
Ruby

module Fog
module Parsers
module Voxel
module Compute
class VoxcloudCreate < Fog::Parsers::Base
def reset
@response = { :stat => nil, :device => {} }
end
def start_element(name, attrs = [])
super
case name
when 'rsp'
@response[:stat] = attr_value('stat', attrs)
end
end
def end_element(name)
case name
when 'id'
@response[:device][:id] = @value
end
end
end
end
end
end
end