lib/harvesting/models/client.rb in harvesting-0.2.0 vs lib/harvesting/models/client.rb in harvesting-0.3.0

- old
+ new

@@ -1,14 +1,17 @@ module Harvesting module Models - class Client < Base + class Client < HarvestRecord attributed :id, :name, :is_active, :address, :created_at, :updated_at, :currency + def path + @attributes['id'].nil? ? "clients" : "clients/#{@attributes['id']}" + end end end end