module WeatherSage::CLI::Forecast
Namespace containing data for forecast and hourly commands.
Constants
- COLUMNS
List of forecast CSV columns and properties.
Public Class Methods
columns(forecast_method, mode)
click to toggle source
Get columns for given forecast method and mode.
# File lib/weather-sage/cli/forecast.rb, line 65 def self.columns(forecast_method, mode) COLUMNS.select { |col| (mode == :full) || col[:show].include?(forecast_method) } end