Class: Harvesting::Models::Client
- Inherits:
-
HarvestRecord
- Object
- Base
- HarvestRecord
- Harvesting::Models::Client
- Defined in:
- lib/harvesting/models/client.rb
Overview
A client record from your Harvest account.
For more information: help.getharvest.com/api-v2/clients-api/clients/clients/
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from HarvestRecord
Methods inherited from Base
#create, #delete, #fetch, get, #initialize, #save, #to_hash, #update
Constructor Details
This class inherits a constructor from Harvesting::Models::Base
Instance Method Details
#path ⇒ Object
15 16 17 |
# File 'lib/harvesting/models/client.rb', line 15 def path @attributes['id'].nil? ? "clients" : "clients/#{@attributes['id']}" end |