lib/fitbit_api/helpers/utils.rb in fitbit_api-0.8.3 vs lib/fitbit_api/helpers/utils.rb in fitbit_api-0.9.0
- old
+ new
@@ -1,8 +1,8 @@
module FitbitAPI
class Client
- PERIODS = %w(1d 7d 30d 1w 1m 3m 6m 1y max)
+ PERIODS = %w(1d 7d 30d 1w 1m 3m 6m 1y max).freeze
def format_date(date)
if [Date, Time, DateTime].include?(date.class)
date.strftime('%Y-%m-%d')
elsif date.is_a? String