How do I get the name of a Ruby class? September 19, 2022 by Tarik You want to call .name on the object’s class: result.class.name