Sha256: 6b0d0fd9917c0964c710fd62e018a58657f6ef6672d85a58024e97523446ed9a
Contents?: true
Size: 688 Bytes
Versions: 38
Compression:
Stored size: 688 Bytes
Contents
module Fog module Joyent class Analytics class Real def get_instrumentation(id) request( :path => "#{@joyent_username}/analytics/instrumentations/#{id}", :method => "GET", :expects => 200, :idempotent => true ) end end class Mock def get_instrumentation(id) raise Fog::Compute::Joyent::Errors::NotFound.new('not found') unless id == self.data[:instrumentation]['id'] response = Excon::Response.new response.status = 200 response.body = self.data[:instrumentation] response end end end end end
Version data entries
38 entries across 36 versions & 6 rubygems