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