Class: SplitIoClient::Cache::Senders::MetricsSender
- Inherits:
-
Object
- Object
- SplitIoClient::Cache::Senders::MetricsSender
- Defined in:
- lib/splitclient-rb/cache/senders/metrics_sender.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(metrics_repository, api_key, config) ⇒ MetricsSender
constructor
A new instance of MetricsSender.
Constructor Details
#initialize(metrics_repository, api_key, config) ⇒ MetricsSender
Returns a new instance of MetricsSender.
7 8 9 10 11 |
# File 'lib/splitclient-rb/cache/senders/metrics_sender.rb', line 7 def initialize(metrics_repository, api_key, config) @metrics_repository = metrics_repository @api_key = api_key @config = config end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/splitclient-rb/cache/senders/metrics_sender.rb', line 13 def call metrics_thread if defined?(PhusionPassenger) PhusionPassenger.on_event(:starting_worker_process) do |forked| metrics_thread if forked end end end |