Class: SnowAgent::SyncStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/snowagent/sync_strategy.rb

Instance Method Summary collapse

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