Module: Wildsight::Agent

Defined in:
lib/wildsight/agent/agent.rb,
lib/wildsight/agent/config.rb,
lib/wildsight/agent/logger.rb

Defined Under Namespace

Classes: Agent, Config, Logger

Class Method Summary collapse

Class Method Details

.defaultObject



11
12
13
# File 'lib/wildsight/agent/agent.rb', line 11

def self.default
  find
end

.find(name = 'default') ⇒ Object



15
16
17
18
# File 'lib/wildsight/agent/agent.rb', line 15

def self.find(name = 'default')
  @agents ||= {}
  @agents[name] ||= Wildsight::Agent::Agent.new
end