Module: Pandemic::ClientSide::Pandemize

Defined in:
lib/pandemic/client_side/pandemize.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/pandemic/client_side/pandemize.rb', line 4

def self.included(klass)
  klass.class_eval do
    @pandemize_connection ||= Pandemic::ClientSide::ClusterConnection.new
    def self.pandemize_connection
      @pandemize_connection
    end
  end
end

Instance Method Details

#pandemicObject



12
13
14
# File 'lib/pandemic/client_side/pandemize.rb', line 12

def pandemic
  self.class.pandemize_connection
end