Class: SnowAgent::SyncStrategy
- Inherits:
-
Object
- Object
- SnowAgent::SyncStrategy
- Defined in:
- lib/snowagent/sync_strategy.rb
Instance Method Summary collapse
-
#initialize(configuration) ⇒ SyncStrategy
constructor
A new instance of SyncStrategy.
- #metric(metric) ⇒ Object
Constructor Details
#initialize(configuration) ⇒ SyncStrategy
Returns a new instance of SyncStrategy.
3 4 5 |
# File 'lib/snowagent/sync_strategy.rb', line 3 def initialize(configuration) @service = Service.new(configuration) end |
Instance Method Details
#metric(metric) ⇒ Object
7 8 9 |
# File 'lib/snowagent/sync_strategy.rb', line 7 def metric(metric) @service.post_data({ metrics: [metric.to_h]}) end |