Class: PlantWatchdog::Aggregation::AggregationEnv
- Inherits:
-
Object
- Object
- PlantWatchdog::Aggregation::AggregationEnv
- Defined in:
- lib/plantwatchdog/aggregation.rb
Overview
the global environment to which the aggregation blocks have access
Instance Attribute Summary collapse
-
#day_of_year ⇒ Object
Returns the value of attribute day_of_year.
-
#devices ⇒ Object
Returns the value of attribute devices.
-
#plant ⇒ Object
Returns the value of attribute plant.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
-
#initialize(year, day_of_year) ⇒ AggregationEnv
constructor
A new instance of AggregationEnv.
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_year ⇒ Object
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 |
#devices ⇒ Object
Returns the value of attribute devices.
25 26 27 |
# File 'lib/plantwatchdog/aggregation.rb', line 25 def devices @devices end |
#plant ⇒ Object
Returns the value of attribute plant.
25 26 27 |
# File 'lib/plantwatchdog/aggregation.rb', line 25 def plant @plant end |
#year ⇒ Object
Returns the value of attribute year.
25 26 27 |
# File 'lib/plantwatchdog/aggregation.rb', line 25 def year @year end |