Sha256: 08cd22a3b542f05214f74cffe281d19248f1cde69fad38e8faff1fe1395c80e6
Contents?: true
Size: 986 Bytes
Versions: 4
Compression:
Stored size: 986 Bytes
Contents
require 'smartdc/api/analytics/heatmap' module Smartdc module Api class Analytics attr_reader :request def initialize(options) @request = Smartdc::Request.new(options) end def describe request.get('my/analytics') end def create(raw={}) request.post('my/analytics/instrumentations/', raw) end def read(id) raise ArgumentError unless id request.get('my/analytics/instrumentations/' + id.to_s) end def all(query={}) request.get('my/analytics/instrumentations', query) end def destroy(id) request.del('my/analytics/instrumentations/' + id.to_s) end def value(id) raise ArgumentError unless id request.get('my/analytics/instrumentations/' + id.to_s + '/value/raw') end def heatmap(id) raise ArgumentError unless id Smartdc::Api::Analytics::Heatmap.new(request, id) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
smartdc-1.2.2 | lib/smartdc/api/analytics.rb |
smartdc-1.2.1 | lib/smartdc/api/analytics.rb |
smartdc-1.1.1 | lib/smartdc/api/analytics.rb |
smartdc-1.0.1 | lib/smartdc/api/analytics.rb |