Class: PlantWatchdog::Aggregation::AggregationEnv

Inherits:
Object
  • Object
show all
Defined in:
lib/plantwatchdog/aggregation.rb

Overview

the global environment to which the aggregation blocks have access

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(year, day_of_year) ⇒ AggregationEnv

Returns a new instance of AggregationEnv.



26
27
28
29
30
# File 'lib/plantwatchdog/aggregation.rb', line 26

def initialize(year, day_of_year)
  @year = year
  @day_of_year = day_of_year
  @devices = []
end

Instance Attribute Details

#day_of_yearObject

Returns the value of attribute day_of_year.



25
26
27
# File 'lib/plantwatchdog/aggregation.rb', line 25

def day_of_year
  @day_of_year
end

#devicesObject

Returns the value of attribute devices.



25
26
27
# File 'lib/plantwatchdog/aggregation.rb', line 25

def devices
  @devices
end

#plantObject

Returns the value of attribute plant.



25
26
27
# File 'lib/plantwatchdog/aggregation.rb', line 25

def plant
  @plant
end

#yearObject

Returns the value of attribute year.



25
26
27
# File 'lib/plantwatchdog/aggregation.rb', line 25

def year
  @year
end