gapic-generator/lib/gapic/model/method/http_annotation.rb
##
# The http verb for this method
#
# @return [Symbol, Nil]
The http verb for this method
The http verb for this method
def verb
          return nil if @proto_method.http.nil?
          method = {
            get:    @proto_method.http.get,
            post:   @proto_method.http.post,
            put:    @proto_method.http.put,
            patch:  @proto_method.http.patch,
            delete: @proto_method.http.delete
          }.find { |_, value| !value.empty? }
          method[0] unless method.nil?
        end
def verb return nil if @proto_method . http . nil? method = { get : @proto_method . http . get , post : @proto_method . http . post , put : @proto_method . http . put , patch : @proto_method . http . patch , delete : @proto_method . http . delete } . find { | _ , value | ! value . empty? } method [ 0 ] unless method . nil? end
The http verb for this method
The http verb for this method
None
Symbol, Nil