Sha256: 91bcab095fc1835cbe086dbc7d1b8da8ce5ac3a35962e1895a1162a38c8500cd

Contents?: true

Size: 562 Bytes

Versions: 4

Compression:

Stored size: 562 Bytes

Contents

module Harvesting
  module Models
    # A task record from your Harvest account.
    #
    # For more information: https://help.getharvest.com/api-v2/tasks-api/tasks/tasks/
    class Task < HarvestRecord
      attributed :id,
                 :name,
                 :billable_by_default,
                 :default_hourly_rate,
                 :is_default,
                 :is_active,
                 :created_at,
                 :updated_at

      def path
        @attributes['id'].nil? ? "tasks" : "tasks/#{@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/task.rb
harvesting-0.5.1 lib/harvesting/models/task.rb
harvesting-0.5.0 lib/harvesting/models/task.rb
harvesting-0.4.0 lib/harvesting/models/task.rb