Method: Forecasting::Models::Base#initialize
- Defined in:
- lib/forecasting/models/base.rb
#initialize(attrs, opts = {}) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 |
# File 'lib/forecasting/models/base.rb', line 10 def initialize(attrs, opts = {}) @forecast_client = opts[:forecast_client] || Forecasting::Client.new(**opts) @attributes = attrs.dup @models = {} end |