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/parser.rb
2009-07-24 19:25:55 -07:00

30 lines
433 B
Ruby

require 'rubygems'
require 'base64'
require 'nokogiri'
require 'time'
module Fog
module Parsers
class Base < Nokogiri::XML::SAX::Document
attr_reader :response
def initialize
reset
end
def reset
@response = {}
end
def characters(string)
@value << string.strip
end
def start_element(name, attrs = [])
@value = ''
end
end
end
end