Sha256: 876f59fbec7ece1fdf705a044062bdd5b1634da5c928fa3971dfdf0517e53868

Contents?: true

Size: 376 Bytes

Versions: 1

Compression:

Stored size: 376 Bytes

Contents

module Harvesting
  module Models
    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

1 entries across 1 versions & 1 rubygems

Version Path
harvesting-0.3.0 lib/harvesting/models/client.rb