Class: Protobuf::Rpc::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/protobuf/rpc/handler.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.request_classObject (readonly)

Returns the value of attribute request_class.



5
6
7
# File 'lib/protobuf/rpc/handler.rb', line 5

def request_class
  @request_class
end

.response_classObject (readonly)

Returns the value of attribute response_class.



5
6
7
# File 'lib/protobuf/rpc/handler.rb', line 5

def response_class
  @response_class
end

Class Method Details

.request(request_class) ⇒ Object



7
8
9
# File 'lib/protobuf/rpc/handler.rb', line 7

def request(request_class)
  @request_class = request_class
end

.response(response_class) ⇒ Object



11
12
13
# File 'lib/protobuf/rpc/handler.rb', line 11

def response(response_class)
  @response_class = response_class
end