module Protobuf::Rpc::Server
def parse_service_info
def parse_service_info @klass = Util.constantize(@request.service_name) @method = Util.underscore(@request.method_name).to_sym unless @klass.instance_methods.include?(@method) raise MethodNotFound, "Service method #{@request.method_name} is not defined by the service" end @stats.service = @klass.name @stats.method = @method rescue NameError raise ServiceNotFound, "Service class #{@request.service_name} is not found" end