Class: God::Reporter
- Inherits:
-
Object
- Object
- God::Reporter
- Defined in:
- lib/god/reporter.rb
Instance Method Summary collapse
-
#initialize(host = nil, port = nil) ⇒ Reporter
constructor
A new instance of Reporter.
- #method_missing(*args, &block) ⇒ Object
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 |