Class: SnowAgent::Agent
- Inherits:
-
Object
- Object
- SnowAgent::Agent
- Defined in:
- lib/snowagent/agent.rb
Defined Under Namespace
Classes: Metric
Instance Method Summary collapse
-
#initialize(configuration) ⇒ Agent
constructor
A new instance of Agent.
- #metric(key, value, kind = nil, context = nil, time = Time.now.to_i) ⇒ Object
Constructor Details
#initialize(configuration) ⇒ Agent
Returns a new instance of Agent.
3 4 5 6 |
# File 'lib/snowagent/agent.rb', line 3 def initialize(configuration) strategy_class = SyncStrategy @strategy = strategy_class.new(configuration) end |