1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

memoize describe analytics call. It doesn't change much and this prevents another api call for each of the objects returned by it.

This commit is contained in:
Kevin Olbrich 2013-12-12 18:35:50 +00:00
parent 10e5b37177
commit 32d5ea1c33

View file

@ -3,7 +3,7 @@ module Fog
class Analytics
class Real
def describe_analytics
request(
@describe_analytics ||= request(
:path => "#{@joyent_username}/analytics",
:method => "GET",
:expects => 200