lib/paddle/object.rb in paddle-2.2.0 vs lib/paddle/object.rb in paddle-2.2.1

- old
+ new

@@ -6,10 +6,10 @@ super to_ostruct(attributes) end def to_ostruct(obj) if obj.is_a?(Hash) - OpenStruct.new(obj.map { |key, val| [key, to_ostruct(val)] }.to_h) + OpenStruct.new(obj.map { |key, val| [ key, to_ostruct(val) ] }.to_h) elsif obj.is_a?(Array) obj.map { |o| to_ostruct(o) } else # Assumed to be a primitive value obj end