Module: NewRelic::Agent::Agent::ClassMethods

Included in:
NewRelic::Agent::Agent
Defined in:
lib/new_relic/agent/agent.rb

Overview

contains all the class-level methods for NewRelic::Agent::Agent

Instance Method Summary collapse

Instance Method Details

#instanceObject

Should only be called by NewRelic::Control - returns a memoized singleton instance of the agent, creating one if needed



66
67
68
# File 'lib/new_relic/agent/agent.rb', line 66

def instance
  @instance ||= self.new
end