Sha256: 89b4cb4e463ca552b3b436e4a820236f916dca5e6d9e0e7a9e8be34689ef0bf8

Contents?: true

Size: 523 Bytes

Versions: 4

Compression:

Stored size: 523 Bytes

Contents

module Harvesting
  module Models
    # A client record from your Harvest account.
    #
    # For more information: https://help.getharvest.com/api-v2/clients-api/clients/clients/
    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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
harvesting-0.6.0 lib/harvesting/models/client.rb
harvesting-0.5.1 lib/harvesting/models/client.rb
harvesting-0.5.0 lib/harvesting/models/client.rb
harvesting-0.4.0 lib/harvesting/models/client.rb