Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base: master
...
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Feb 09, 2011
@th-in-gs th-in-gs Allow access to bills. ef47ce5
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/freeagent_api.rb
View
13 lib/freeagent_api.rb
@@ -67,6 +67,19 @@ class Task < Base
self.prefix = '/projects/:project_id/'
end
+ # Bills - Complete
+
+ class Bill < Base
+
+ # This is the /only/ way to get bills.
+ def self.find_by_date_range(from, to)
+ fromString = from.strftime("%Y-%m-%d")
+ toString = to.strftime("%Y-%m-%d")
+ Bill.find(:all, :params => { :view => "#{fromString}_#{toString}" })
+ end
+
+ end
+
# Invoices - Complete
class Invoice < Base

No commit comments for this range

Something went wrong with that request. Please try again.