Skip to content

Commit

Permalink
Add of_user support to Time Entry
Browse files Browse the repository at this point in the history
  • Loading branch information
tkwong committed Jan 28, 2011
1 parent ad9988b commit c616b69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/harvest/time_entry.rb
Expand Up @@ -19,6 +19,7 @@ class TimeEntry < BaseModel
element :user_id, Integer
element :closed, Boolean, :tag => 'is-closed'
element :billed, Boolean, :tag => 'is-billed'
element :of_user, Integer

def spent_at=(date)
@spent_at = (String === date ? Time.parse(date) : date)
Expand All @@ -32,6 +33,7 @@ def to_xml
r.tag!('project_id', project_id) if project_id
r.tag!('task_id', task_id) if task_id
r.tag!('spent_at', spent_at) if spent_at
r.tag!('of_user', of_user) if of_user
end
end

Expand Down

0 comments on commit c616b69

Please sign in to comment.