Class: Pandemic::ClientSide::ConnectionProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/pandemic/client_side/connection_proxy.rb

Instance Method Summary collapse

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, options = {})
  @cluster.request(body, @key, options)
end