# File lib/fog/voxel/parsers/compute/voxcloud_create.rb, line 26 def end_element(name) case name when 'id' @response['device'][name] = value when 'last_update' @response['device'][name] = Time.at(value.to_i) end end
# File lib/fog/voxel/parsers/compute/voxcloud_create.rb, line 8 def reset @response = { 'device' => {} } end
# File lib/fog/voxel/parsers/compute/voxcloud_create.rb, line 12 def start_element(name, attrs = []) super case name when 'err' @response['err'] = { 'code' => attr_value('code', attrs), 'msg' => attr_value('msg', attrs) } when 'rsp' @response['stat'] = attr_value('stat', attrs) end end
Generated with the Darkfish Rdoc Generator 2.