Class: Forecasting::Models::Placeholder

Inherits:
ForecastRecord show all
Defined in:
lib/forecasting/models/placeholder.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #forecast_client

Instance Method Summary collapse

Methods inherited from ForecastRecord

#create, #delete, #fetch, get, #save, #type, #update

Methods inherited from Base

attributed, #initialize, modeled, #to_hash

Constructor Details

This class inherits a constructor from Forecasting::Models::Base

Instance Method Details

#pathObject



11
12
13
# File 'lib/forecasting/models/placeholder.rb', line 11

def path
  @attributes['id'].nil? ? "placeholders" : "placeholders/#{@attributes['id']}"
end