Sha256: 750d8b0965ee1c3b0d7c6b79f5d29879b945abad4091df8afd2d8626f78fb164

Contents?: true

Size: 457 Bytes

Versions: 19

Compression:

Stored size: 457 Bytes

Contents

require 'sqreen/rules/rule_cb'
require 'sqreen/metrics/base'

module Sqreen
  class AggregatedMetric
    def initialize(values = {})
      values.each do |k, v|
        public_send "#{k}=", v
      end
    end

    # @return [Sqreen::Rules::RuleCB]
    attr_accessor :rule # optional

    # @return [Sqreen::Metric::Base]
    attr_accessor :metric

    attr_accessor :start, :finish
    attr_accessor :data

    def name
      metric.name
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
sqreen-1.22.0-java lib/sqreen/aggregated_metric.rb
sqreen-1.22.0 lib/sqreen/aggregated_metric.rb
sqreen-1.21.1-java lib/sqreen/aggregated_metric.rb
sqreen-1.21.1 lib/sqreen/aggregated_metric.rb
sqreen-1.21.0-java lib/sqreen/aggregated_metric.rb
sqreen-1.21.0 lib/sqreen/aggregated_metric.rb
sqreen-1.20.4-java lib/sqreen/aggregated_metric.rb
sqreen-1.20.4 lib/sqreen/aggregated_metric.rb
sqreen-1.21.0.beta3-java lib/sqreen/aggregated_metric.rb
sqreen-1.21.0.beta3 lib/sqreen/aggregated_metric.rb
sqreen-1.20.4.beta1 lib/sqreen/aggregated_metric.rb
sqreen-1.20.3 lib/sqreen/aggregated_metric.rb
sqreen-1.20.2 lib/sqreen/aggregated_metric.rb
sqreen-1.21.0.beta2 lib/sqreen/aggregated_metric.rb
sqreen-1.21.0.beta1 lib/sqreen/aggregated_metric.rb
sqreen-1.20.1-java lib/sqreen/aggregated_metric.rb
sqreen-1.20.1 lib/sqreen/aggregated_metric.rb
sqreen-1.20.0-java lib/sqreen/aggregated_metric.rb
sqreen-1.20.0 lib/sqreen/aggregated_metric.rb