Class: Sqreen::AggregatedMetric

Inherits:
Object
  • Object
show all
Defined in:
lib/sqreen/aggregated_metric.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values = {}) ⇒ AggregatedMetric

Returns a new instance of AggregatedMetric.



11
12
13
14
15
# File 'lib/sqreen/aggregated_metric.rb', line 11

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

Instance Attribute Details

#dataObject

Returns the value of attribute data.



24
25
26
# File 'lib/sqreen/aggregated_metric.rb', line 24

def data
  @data
end

#finishObject

Returns the value of attribute finish.



23
24
25
# File 'lib/sqreen/aggregated_metric.rb', line 23

def finish
  @finish
end

#metricSqreen::Metric::Base



21
22
23
# File 'lib/sqreen/aggregated_metric.rb', line 21

def metric
  @metric
end

#ruleSqreen::Rules::RuleCB



18
19
20
# File 'lib/sqreen/aggregated_metric.rb', line 18

def rule
  @rule
end

#startObject

Returns the value of attribute start.



23
24
25
# File 'lib/sqreen/aggregated_metric.rb', line 23

def start
  @start
end

Instance Method Details

#nameObject



26
27
28
# File 'lib/sqreen/aggregated_metric.rb', line 26

def name
  metric.name
end