Class: Harvesting::Models::Client

Inherits:
HarvestRecord show all
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

#attributes, #harvest_client

Instance Method Summary collapse

Methods inherited from HarvestRecord

#create, #save, #update

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

#pathObject



15
16
17
# File 'lib/harvesting/models/client.rb', line 15

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