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

25 lines
526 B
Ruby
Raw Normal View History

module Fog
module Joyent
class Analytics
class Real
def list_instrumentations
request(
:path => "#{@joyent_username}/analytics/instrumentations",
:method => "GET",
:expects => 200
)
end
end
2014-01-03 14:25:59 -05:00
class Mock
def list_instrumentations
response = Excon::Response.new
response.status = 200
response.body = [self.data[:instrumentation]]
response
end
end
end
end
end