1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/joyent/requests/analytics/list_instrumentations.rb
2014-01-21 16:24:24 +00:00

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