module WeatherJudge::Configuration

Attributes

forecast_io_api_key[W]
ideal_temp_range[W]
max_cloud_cover[W]
max_percent_rain[W]
max_wind_speed[W]
temp_range_delta[W]

Public Instance Methods

configure() { |self| ... } click to toggle source

For configuring WeatherJudge with block style

# File lib/weather_judge/configuration.rb, line 7
def configure
  yield self
end
forecast_io_api_key() click to toggle source
# File lib/weather_judge/configuration.rb, line 11
def forecast_io_api_key
  @forecast_io_api_key
end
ideal_temp_range() click to toggle source

Ideal temperature range in fahrenheit expressed in hash

# File lib/weather_judge/configuration.rb, line 31
def ideal_temp_range
  @ideal_temp_range || { min: 67, max: 77 }
end
max_cloud_cover() click to toggle source

Maximum cloud cover you are willing to tolerate

# File lib/weather_judge/configuration.rb, line 16
def max_cloud_cover
  @max_cloud_cover
end
max_percent_rain() click to toggle source

Maximum change of rain you are willing to tolerate

# File lib/weather_judge/configuration.rb, line 21
def max_percent_rain
  @max_percent_rain
end
max_wind_speed() click to toggle source

Maximum wind speed you are willing to tolerate. Default is 15mph.

# File lib/weather_judge/configuration.rb, line 26
def max_wind_speed
  @max_wind_speed || 15
end
temp_range_delta() click to toggle source

The delta for slightly less than ideal temperate range in fahrenheit

# File lib/weather_judge/configuration.rb, line 36
def temp_range_delta
  @temp_range_delta || 10
end