Module: ActiveEvent::Domain::ClassMethods

Defined in:
lib/active_event/domain.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#server_uriObject

Returns the value of attribute server_uri.



44
45
46
# File 'lib/active_event/domain.rb', line 44

def server_uri
  @server_uri
end

Class Method Details

.extended(base) ⇒ Object



46
47
48
# File 'lib/active_event/domain.rb', line 46

def self.extended(base)
  base.server_uri = 'druby://127.0.0.1:8787'
end

Instance Method Details

#run_command(command) ⇒ Object



40
41
42
# File 'lib/active_event/domain.rb', line 40

def run_command(command)
  instance.run_command command
end

#set_config(protocol = 'druby', host = 'localhost', port = 8787) ⇒ Object



50
51
52
# File 'lib/active_event/domain.rb', line 50

def set_config(protocol = 'druby', host = 'localhost', port = 8787)
  self.server_uri = "#{protocol}://#{host}:#{port}"
end