mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
24 lines
528 B
Ruby
24 lines
528 B
Ruby
module Fog
|
|
module Joyent
|
|
class Analytics
|
|
class Real
|
|
def describe_analytics
|
|
@describe_analytics ||= request(
|
|
:path => "#{@joyent_username}/analytics",
|
|
:method => "GET",
|
|
:expects => 200
|
|
)
|
|
end
|
|
end
|
|
|
|
class Mock
|
|
def describe_analytics
|
|
response = Excon::Response.new
|
|
response.status = 200
|
|
response.body = self.data[:describe_analytics]
|
|
response
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|