Class: WeatherGenerator
- Inherits:
-
Object
- Object
- WeatherGenerator
- Defined in:
- lib/weathergenerator.rb
Instance Attribute Summary collapse
-
#days ⇒ Object
readonly
Returns the value of attribute days.
Instance Method Summary collapse
-
#initialize(baselinedata, precipitation_occurance_chart, options) ⇒ WeatherGenerator
constructor
A new instance of WeatherGenerator.
Constructor Details
#initialize(baselinedata, precipitation_occurance_chart, options) ⇒ WeatherGenerator
Returns a new instance of WeatherGenerator.
6 7 8 9 10 11 |
# File 'lib/weathergenerator.rb', line 6 def initialize (baselinedata, precipitation_occurance_chart, ) month_for_each_day = make_months_for_days_array(baselinedata, .month, .num_days) @days = month_for_each_day.map do |month| make_weather month, .dieroller, precipitation_occurance_chart, .terrain end end |
Instance Attribute Details
#days ⇒ Object (readonly)
Returns the value of attribute days.
4 5 6 |
# File 'lib/weathergenerator.rb', line 4 def days @days end |