Sha256: 04742d3b8a70a3959110a9e7ff55a1d2375490fa581001af2feec4fce4ca4335

Contents?: true

Size: 645 Bytes

Versions: 23

Compression:

Stored size: 645 Bytes

Contents

require_relative "client_callback"
require_relative "metrics_callback"

class InnerClientMetricsCallback < MetricsCallback

  def initialize(client_callback, logger = nil)

    unless client_callback.kind_of?(ClientCallback)

      raise "The 'client_callback' parameter must be of '" + ClientCallback.to_s + "' data type"
    end

    if logger != nil

      @logger = logger
    else

      @logger = Logger.new(STDOUT)
    end

    @client_callback = client_callback
  end

  def on_metrics_ready

    @client_callback.on_metrics_processor_ready
  end

  def on_metrics_error(error)

    @logger.error "Metrics error: " + error.to_s
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ff-ruby-server-sdk-1.4.5 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.4.4 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.4.3 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.4.2 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.4.1 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.4.0 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.3.2 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.3.1 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.2.1 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.2.0 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.1.4 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.1.3 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.1.2 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.1.1 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.1.0 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.0.6 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.0.5 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.0.4 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.0.3 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb
ff-ruby-server-sdk-1.0.2 lib/ff/ruby/server/sdk/api/inner_client_metrics_callback.rb