Sha256: 98b6f1354128b620a9237564d91f02802f21ca2b203afefa872a69f8f79d7056

Contents?: true

Size: 453 Bytes

Versions: 35

Compression:

Stored size: 453 Bytes

Contents

module Protobuf
  module Rpc
    class RpcMethod
      ::Protobuf::Optionable.inject(self, false) { ::Google::Protobuf::MethodOptions }

      attr_reader :method, :request_type, :response_type

      def initialize(method, request_type, response_type, &options_block)
        @method = method
        @request_type = request_type
        @response_type = response_type
        instance_eval(&options_block) if options_block
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
protobuf-3.10.9 lib/protobuf/rpc/rpc_method.rb
protobuf-3.10.8 lib/protobuf/rpc/rpc_method.rb
protobuf-3.10.7 lib/protobuf/rpc/rpc_method.rb
protobuf-3.10.6 lib/protobuf/rpc/rpc_method.rb
protobuf-3.10.5 lib/protobuf/rpc/rpc_method.rb
protobuf-3.10.4 lib/protobuf/rpc/rpc_method.rb
protobuf-cucumber-3.10.8 lib/protobuf/rpc/rpc_method.rb
protobuf-cucumber-3.10.7 lib/protobuf/rpc/rpc_method.rb
protobuf-cucumber-3.10.6 lib/protobuf/rpc/rpc_method.rb
protobuf-cucumber-3.10.5 lib/protobuf/rpc/rpc_method.rb
protobuf-cucumber-3.10.4 lib/protobuf/rpc/rpc_method.rb
protobuf-3.10.3 lib/protobuf/rpc/rpc_method.rb
protobuf-3.10.2 lib/protobuf/rpc/rpc_method.rb
protobuf-3.10.1 lib/protobuf/rpc/rpc_method.rb
protobuf-3.10.0 lib/protobuf/rpc/rpc_method.rb
protobuf-3.10.0.pre0 lib/protobuf/rpc/rpc_method.rb
protobuf-3.9.0 lib/protobuf/rpc/rpc_method.rb
protobuf-3.9.0.pre2 lib/protobuf/rpc/rpc_method.rb
protobuf-3.9.0.pre lib/protobuf/rpc/rpc_method.rb
protobuf-3.8.5 lib/protobuf/rpc/rpc_method.rb