Sha256: dcf1b08f3e9cf9feef7d15dc0f48a6b539f2bc58eeb05905169954b7ead9d5e0

Contents?: true

Size: 590 Bytes

Versions: 38

Compression:

Stored size: 590 Bytes

Contents

module Fog
  module Joyent
    class Analytics
      class Real
        def create_instrumentation(values = {})
          request(
              :path => "#{@joyent_username}/analytics/instrumentations",
              :method => "POST",
              :body => values,
              :expects => [200,201]
          )
        end
      end

      class Mock
        def create_instrumentation(values = {})
          response = Excon::Response.new
          response.status = 201
          response.body = self.data[:instrumentation]
          response
        end
      end
    end
  end
end

Version data entries

38 entries across 36 versions & 6 rubygems

Version Path
fog-1.27.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.26.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.25.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
nsidc-fog-1.24.1 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.24.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
ns-fog-1.22.11 lib/fog/joyent/requests/analytics/create_instrumentation.rb
ns-fog-1.22.10 lib/fog/joyent/requests/analytics/create_instrumentation.rb
ns-fog-1.22.9 lib/fog/joyent/requests/analytics/create_instrumentation.rb
ns-fog-1.22.8 lib/fog/joyent/requests/analytics/create_instrumentation.rb
ns-fog-1.22.7 lib/fog/joyent/requests/analytics/create_instrumentation.rb
ns-fog-1.22.6 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.23.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
ns-fog-1.22.4 lib/fog/joyent/requests/analytics/create_instrumentation.rb
ns-fog-1.22.3 lib/fog/joyent/requests/analytics/create_instrumentation.rb
ns-fog-1.22.2 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.22.1 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.22.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.21.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb