Sha256: 4cc4fb8c91cf8848c9e6efc6fee3c50ae221e4e0a9a3a7844c4d4e367c9ba941
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
module Harvesting module Models class TaskAssignment < HarvestRecord attributed :id, :is_active, :billable, :hourly_rate, :budget, :created_at, :updated_at modeled project: Project, task: Task def path base_url = "projects/#{project.id}/task_assignments" id.nil? ? base_url : "#{base_url}/#{id}" end # def project_id # # TODO: handle case where project's id is part of json object # @attributes["project_id"] # end def to_hash { project_id: project.id, task_id: task.id }.merge(super) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
harvesting-0.3.0 | lib/harvesting/models/task_assignment.rb |