Sha256: 5878e5e5c8cc7dbc2fa71b455e74fafcc463ec38aa5a2389dd083fc895dadff5

Contents?: true

Size: 385 Bytes

Versions: 2

Compression:

Stored size: 385 Bytes

Contents

module Harvesting
  module Models
    class Task < Base
      attributed :id,
                 :name,
                 :billable_by_default, 
                 :default_hourly_rate,
                 :is_default,
                 :is_active,
                 :created_at,
                 :updated_at

      def path
        id.nil? ? "tasks" : "tasks/#{id}"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
harvesting-0.2.0 lib/harvesting/models/task.rb
harvesting-0.1.0 lib/harvesting/models/task.rb