Class: Forecasting::Models::Person
- Inherits:
-
ForecastRecord
- Object
- Base
- ForecastRecord
- Forecasting::Models::Person
- Defined in:
- lib/forecasting/models/person.rb
Instance Attribute Summary
Attributes inherited from Base
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
#path ⇒ Object
22 23 24 |
# File 'lib/forecasting/models/person.rb', line 22 def path @attributes['id'].nil? ? "people" : "people/#{@attributes['id']}" end |