Class: Protobuf::Rpc::Connector
- Inherits:
-
Object
- Object
- Protobuf::Rpc::Connector
- Defined in:
- lib/protobuf/rpc/connector.rb
Class Method Summary collapse
-
.connector_for_client ⇒ Object
Returns a connector class for the pre-defined connector_type.
Class Method Details
.connector_for_client ⇒ Object
Returns a connector class for the pre-defined connector_type.
8 9 10 11 12 13 14 15 |
# File 'lib/protobuf/rpc/connector.rb', line 8 def self.connector_for_client case ::Protobuf.connector_type when :zmq then ::Protobuf::Rpc::Connectors::Zmq else ::Protobuf::Rpc::Connectors::Socket end end |