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/models/analytics/instrumentations.rb
2014-01-21 16:24:22 +00:00

26 lines
511 B
Ruby

require 'fog/joyent/models/analytics/instrumentation'
module Fog
module Joyent
class Analytics
class Instrumentations < Fog::Collection
model Fog::Joyent::Analytics::Instrumentation
def all
data = service.list_instrumentations.body
load(data)
end
def get(id)
data = service.get_instrumentation(id).body
new(data)
rescue Fog::Compute::Joyent::Errors::NotFound
nil
end
end
end
end
end