Class: Pandemic::ClientSide::ConnectionProxy
- Inherits:
-
Object
- Object
- Pandemic::ClientSide::ConnectionProxy
- Defined in:
- lib/pandemic/client_side/connection_proxy.rb
Instance Method Summary collapse
-
#initialize(key, cluster) ⇒ ConnectionProxy
constructor
A new instance of ConnectionProxy.
- #request(body, options = {}) ⇒ Object
Constructor Details
#initialize(key, cluster) ⇒ ConnectionProxy
Returns a new instance of ConnectionProxy.
6 7 8 |
# File 'lib/pandemic/client_side/connection_proxy.rb', line 6 def initialize(key, cluster) @key, @cluster = key, cluster end |
Instance Method Details
#request(body, options = {}) ⇒ Object
10 11 12 |
# File 'lib/pandemic/client_side/connection_proxy.rb', line 10 def request(body, = {}) @cluster.request(body, @key, ) end |