Class: God::Reporter

Inherits:
Object
  • Object
show all
Defined in:
lib/god/reporter.rb

Instance Method Summary collapse

Constructor Details

#initialize(host = nil, port = nil) ⇒ Reporter

Returns a new instance of Reporter.



6
7
8
9
10
# File 'lib/god/reporter.rb', line 6

def initialize(host = nil, port = nil)
  @host = host
  @port = port || 7777
  @service = nil
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



12
13
14
# File 'lib/god/reporter.rb', line 12

def method_missing(*args, &block)
  service.send(*args, &block)
end