lib/harvesting/models/contact.rb in harvesting-0.3.0 vs lib/harvesting/models/contact.rb in harvesting-0.4.0

- old
+ new

@@ -1,7 +1,10 @@ module Harvesting module Models + # A contact record from your Harvest account. + # + # For more information: https://help.getharvest.com/api-v2/clients-api/clients/contacts/ class Contact < HarvestRecord attributed :id, :title, :first_name, :last_name, @@ -15,10 +18,10 @@ modeled client: Client def path @attributes['id'].nil? ? "contacts" : "contacts/#{@attributes['id']}" end - + def to_hash { client_id: client.id }.merge(super) end end end