lib/googleajax/base.rb in googleajax-0.2.0 vs lib/googleajax/base.rb in googleajax-1.0.0
- old
+ new
@@ -1,25 +1,6 @@
module GoogleAjax
- class Base < OpenStruct
- def [](key)
- send(key)
- end
-
- def []=(key, value)
- send("#{key}=", value)
- end
-
- def self.remap(h)
- define_method(:initialize) do |arg|
- super(arg)
- h.each do |key, klass|
- case self[key]
- when Array
- self[key] = self[key].map(&klass.method(:new))
- when Hash
- self[key] = klass.new(self[key])
- end
- end
- end
- end
+ # See Results
+ class Base < Hash
+ include Filters::Default
end
-end
\ No newline at end of file
+end