Class: Forecasting::Models::Client

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

Overview

A client record from your Harvest account.

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



12
13
14
# File 'lib/forecasting/models/client.rb', line 12

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