lib/fog/xenserver/parser.rb in fog-1.20.0 vs lib/fog/xenserver/parser.rb in fog-1.21.0
- old
+ new
@@ -1,20 +1,20 @@
module Fog
module Parsers
module XenServer
class Base
-
+
attr_reader :response
-
+
def initialize
reset
end
-
+
def reset
@response = {}
end
-
+
def parse( data )
if data.kind_of? Hash
@response = data.symbolize_keys!
@response.each do |k,v|
if @response[k] == "OpaqueRef:NULL"
@@ -24,13 +24,13 @@
elsif data.kind_of? Array
@response = data.first
elsif data.kind_of?(String) and data =~ /OpaqueRef:/
@response = data
end
-
+
@response
end
-
+
end
end
end
end