summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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