gapic-generator/lib/gapic/model/method/http_annotation.rb
def path
          return "" if @proto_method.http.nil?

          verb_path = [
            @proto_method.http.get, @proto_method.http.post, @proto_method.http.put,
            @proto_method.http.patch, @proto_method.http.delete
          ].find { |x| !x.empty? }

          verb_path || @proto_method.http.custom&.path || ""
        end
##
# A method path or an empty string if not present
#
# @return [String]
A method path or an empty string if not present
A method path or an empty string if not present
def path
          return "" if @proto_method.http.nil?
          verb_path = [
            @proto_method.http.get, @proto_method.http.post, @proto_method.http.put,
            @proto_method.http.patch, @proto_method.http.delete
          ].find { |x| !x.empty? }
          verb_path || @proto_method.http.custom&.path || ""
        end
def path return "" if @proto_method . http . nil? verb_path = [ @proto_method . http . get , @proto_method . http . post , @proto_method . http . put , @proto_method . http . patch , @proto_method . http . delete ] . find { | x | ! x . empty? } verb_path || @proto_method . http . custom &. path || "" end
A method path or an empty string if not present
A method path or an empty string if not present
None
String