Sha256: ed4c27f4995fc1bd620b08463afc556492529a9fecac14acc1aef1b7391d69c6
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
module Smartdc::Api class Analytics class Instrumentations attr_reader :request, :id def initialize(request, id) @request = request @id = id end def create(params={}) request.post('my/analytics/instrumentations/', params) end def read raise ArgumentError unless id request.get('my/analytics/instrumentations/' + id.to_s) end def find(params={}) request.get('my/analytics/instrumentations', params) end def delete request.delete('my/analytics/instrumentations/' + id.to_s) end def value raise ArgumentError unless id request.get('my/analytics/instrumentations/' + id.to_s + '/value/raw') end def heatmap(params={}) raise ArgumentError unless id request.get('my/analytics/instrumentations/' + id.to_s + '/value/heatmap/image', params) end def heatmap_details(params={}) raise ArgumentError unless id request.get('my/analytics/instrumentations/' + id.to_s + '/value/heatmap/details', params) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smartdc-0.4.0 | lib/smartdc/api/analytics/instrumentations.rb |