Sha256: e36e8df659bac86aedb588283bc1ba0dd5e3bf10908910268f5d8786b1d6e0f2

Contents?: true

Size: 377 Bytes

Versions: 159

Compression:

Stored size: 377 Bytes

Contents

module MockWebapp
  # Mock controller.
  # @appmap
  class Controller
    @controller = nil

    class << self
      # Singleton factory method.
      #
      # @appmap
      def instance
        @controller ||= Controller.new
      end
    end

    # @appmap
    def process(request)
      id = request.params[:id]
      user = User.find(id)
      user.to_h
    end
  end
end

Version data entries

159 entries across 159 versions & 1 rubygems

Version Path
appmap-1.1.1 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-1.0.1 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-1.0.0 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.103.0 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.102.2 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.102.1 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.102.0 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.101.0 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.100.0 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.99.4 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.99.2 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.99.1 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.99.0 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.98.1 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.98.0 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.97.0 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.96.0 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.95.2 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.95.1 examples/mock_webapp/lib/mock_webapp/controller.rb
appmap-0.95.0 examples/mock_webapp/lib/mock_webapp/controller.rb