3scale is an API Infrastructure service which handles API Keys, Rate Limiting, Analytics, Billing Payments and Developer Management. Includes a configurable API dashboard and developer portal CMS. More product stuff at http://www.3scale.net/, support information at http://support.3scale.net/.
Using @period inside an object literal is undefined since this points to the global scope at that point.
It was still working ok except for those cases where the period_start and period_end fields do not exist (which happens when period is "eternity").
Using
@period
inside an object literal is undefined sincethis
points to the global scope at that point.It was still working ok except for those cases where the
period_start
andperiod_end
fields do not exist (which happens when period is "eternity").Fixed and added test case.