README.md in nike-0.2.5 vs README.md in nike-0.2.6
- old
+ new
@@ -54,11 +54,11 @@
More metrics
$ c.time_span_metrics # run metrics
- $ c.time_span_metrics # hr metrics
+ $ c.time_span_metrics(type: :hr) # hr metrics
Distance by time of day
$ c.time_of_day_metrics
@@ -111,21 +111,25 @@
$ a.start_time_utc.class # => Time
## Caching
+Caching is enabled by default due to the slowness of the API and the large data set sizes.
+
Toggle caching during client initialization
- $ c = Nike::Client.new('your_email', 'your_password', caching: true)
+ $ c = Nike::Client.new('your_email', 'your_password', caching: false)
Toggle caching after client initialization
$ c.caching = false
-Perform the HTTP request for a particular call even if caching is enabled. This
+Force the request for a particular data set even if caching is enabled. This
will have the side-effect of refreshing the cache.
$ c.activities!
+
+ $ c.activity!(12345)
## Contributing
1. Fork it