summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZack Hobson2009-07-19 11:43:51 -0700
committerZack Hobson2009-07-19 11:43:51 -0700
commit36510ce224ac6f1594d6fa21977a2f62f5f41e4e (patch)
tree97aa7ed8b214f3dc506622b50e243bc23392d9f1 /lib
parent490035c83e9518ac8dfdf86c9ef931bcbdd8d47a (diff)
downloadhcl-36510ce224ac6f1594d6fa21977a2f62f5f41e4e.tar.bz2
documented show command
Diffstat (limited to 'lib')
-rw-r--r--lib/hcl/day_entry.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hcl/day_entry.rb b/lib/hcl/day_entry.rb
index 41570b4..42afc04 100644
--- a/lib/hcl/day_entry.rb
+++ b/lib/hcl/day_entry.rb
@@ -51,6 +51,8 @@ class HCl
end
class DayEntry < TimesheetResource
+ # Get the time sheet entries for a given day. If no date is provided
+ # defaults to today.
def self.all date = nil
url = date.nil? ? 'daily' : "daily/#{date.strftime '%j/%Y'}"
doc = REXML::Document.new perform url