blender 2.8: 'Object' object has no attribute 'hide'
Blender 2.80 use a more complicated (sound and safe for code) API to deal with some attributes.

As the object.hide in Blender 2.79 is replaced by getter and setter function:

object.hide_get() # get the hide value {True, False}
object.hide_set(True) # set hide to True


so, ob.hide needed to be replaced by ob.hide_get()