Sha256: 6d65ba4f01277174d728a93f73f05bbb97116cc391b92c1694cb864bb69032db

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

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