3scale / 3scale_time_range

Utility class for ranges of times (time periods).
Apache License 2.0
0 stars 1 forks source link

Convert granulate to a class method that returns a hash #7

Closed davidor closed 8 years ago

davidor commented 8 years ago

Granulate was not easy to use because it returned an instance of 'Granulate'. This prevented clients from iterating through the result. For that reason, I have converted 'granulate' to a class method that returns a hash.

The original algorithm to 'granulate' a time range has not been modified.

unleashed commented 8 years ago

:+1: