Class: Fog::Joyent::Analytics::Instrumentations

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/joyent/models/analytics/instrumentations.rb

Instance Method Summary collapse

Instance Method Details

#allObject



9
10
11
12
# File 'lib/fog/joyent/models/analytics/instrumentations.rb', line 9

def all
  data = service.list_instrumentations.body
  load(data)
end

#get(id) ⇒ Object



14
15
16
17
18
19
# File 'lib/fog/joyent/models/analytics/instrumentations.rb', line 14

def get(id)
  data = service.get_instrumentation(id).body
  new(data)
rescue Fog::Compute::Joyent::Errors::NotFound
  nil
end