added method visibility to api docs

issue #2503