lib/fitbit_api/sleep.rb in fitbit_api-1.0.0 vs lib/fitbit_api/sleep.rb in fitbit_api-1.0.1
- old
+ new
@@ -48,10 +48,10 @@
# @option params :sort [String] the Sort order of entries by date (asc or desc)
# @option params :offset [Integer] The offset number of entries. Must always be 0
# @option params :limit [Integer] The max of the number of entries returned (max: 100)
def sleep_logs_list(params = {})
- default_params = { before_date: Date.today, after_date: nil, sort: 'desc', limit: 20, offset: 0 }
+ default_params = { before_date: Date.today, sort: 'desc', limit: 20, offset: 0 }
get("user/#{user_id}/sleep/list.json", default_params.merge(params))
end
# Creates a log entry for a sleep event