class Harvest::TrackableProject
The model for project-tasks combinations that can be added to the timesheet
Fields¶ ↑
id
-
the id of the project
name
-
the name of the project
client
-
the name of the client of the project
client_id
-
the client id of the project
tasks
-
trackable tasks for the project
Public Class Methods
new(args = {}, _ = nil)
click to toggle source
Calls superclass method
# File lib/harvest/trackable_project.rb, line 16 def initialize(args = {}, _ = nil) args = args.to_hash.stringify_keys self.tasks = args.delete("tasks") if args["tasks"] super end
Public Instance Methods
tasks=(tasks)
click to toggle source
# File lib/harvest/trackable_project.rb, line 22 def tasks=(tasks) self["tasks"] = Task.parse(tasks) end