Read a schema from a Ruby Hash-like object

I'm using this gem for its attributes-from-schema capabilities, but where the object brings its own schema when I get it from an API. As such, I don't want to output it to a file just to be able to read it back in again.