Class: Nucleo::Models::MetricPeriodRows

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/nucleo/models/metric_period_rows.rb

Instance Method Summary collapse

Constructor Details

#initialize(metric, dimension, period_name, collection) ⇒ MetricPeriodRows

Returns a new instance of MetricPeriodRows.



8
9
10
11
12
13
# File 'lib/nucleo/models/metric_period_rows.rb', line 8

def initialize(metric, dimension, period_name, collection)
  @metric      = metric
  @dimension   = dimension
  @period_name = period_name
  @collection  = Array(collection)
end

Instance Method Details

#each(&block) ⇒ Object



15
16
17
# File 'lib/nucleo/models/metric_period_rows.rb', line 15

def each(&block)
  internal_collection.each(&block)
end