Class: Forecasting::Models::Person

Inherits:
ForecastRecord show all
Defined in:
lib/forecasting/models/person.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



22
23
24
# File 'lib/forecasting/models/person.rb', line 22

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