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:
parent
10e5b37177
commit
32d5ea1c33
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue