Class: Sqreen::AggregatedMetric
- Inherits:
-
Object
- Object
- Sqreen::AggregatedMetric
- Defined in:
- lib/sqreen/aggregated_metric.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#finish ⇒ Object
Returns the value of attribute finish.
- #metric ⇒ Sqreen::Metric::Base
- #rule ⇒ Sqreen::Rules::RuleCB
-
#start ⇒ Object
Returns the value of attribute start.
Instance Method Summary collapse
-
#initialize(values = {}) ⇒ AggregatedMetric
constructor
A new instance of AggregatedMetric.
- #name ⇒ Object
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
#data ⇒ Object
Returns the value of attribute data.
24 25 26 |
# File 'lib/sqreen/aggregated_metric.rb', line 24 def data @data end |
#finish ⇒ Object
Returns the value of attribute finish.
23 24 25 |
# File 'lib/sqreen/aggregated_metric.rb', line 23 def finish @finish end |
#metric ⇒ Sqreen::Metric::Base
21 22 23 |
# File 'lib/sqreen/aggregated_metric.rb', line 21 def metric @metric end |
#rule ⇒ Sqreen::Rules::RuleCB
18 19 20 |
# File 'lib/sqreen/aggregated_metric.rb', line 18 def rule @rule end |
#start ⇒ Object
Returns the value of attribute start.
23 24 25 |
# File 'lib/sqreen/aggregated_metric.rb', line 23 def start @start end |
Instance Method Details
#name ⇒ Object
26 27 28 |
# File 'lib/sqreen/aggregated_metric.rb', line 26 def name metric.name end |