Ruby wrapper for fm_generic_api