Class: Toshl::Entry
- Inherits:
-
Object
- Object
- Toshl::Entry
- Defined in:
- lib/toshl/entry.rb
Constant Summary collapse
- API_URL =
'/entries'
Class Method Summary collapse
Class Method Details
.list(range = 1.month.ago..Date.today) ⇒ Object
5 6 7 |
# File 'lib/toshl/entry.rb', line 5 def self.list(range=1.month.ago..Date.today) response = Toshl.make_api_request('get', API_URL, { from: range.first.strftime('%Y-%m-%d'), to: range.last.strftime('%Y-%m-%d')}) end |