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
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-joyent-0.0.1/lib/fog/joyent/requests/analytics/create_instrumentation.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-joyent-0.0.1/lib/fog/joyent/requests/analytics/create_instrumentation.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-joyent-0.0.1/lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-joyent-0.0.1 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.40.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.39.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.38.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.37.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.36.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.35.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-2.0.0.pre.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.34.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.33.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.32.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.31.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.30.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.29.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb
fog-1.28.0 lib/fog/joyent/requests/analytics/create_instrumentation.rb