mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
26 lines
385 B
Ruby
26 lines
385 B
Ruby
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 ||= ''
|
|
@value << string.strip
|
|
end
|
|
|
|
def start_element(name, attrs = [])
|
|
@value = nil
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|