To return a class name as a string in Ruby you need this code:
Ruby:
1class_name = thing.class.to_s
I’m also reliably informed you can do this too. Not tested it yet though:
1class_name = thing.class.name
That feels more logical to me.
PHP equivalent:
1$class_name = get_class($thing);