Sha256: 88db8f4695b11c5d17a5c296a586a85a25839d90aa7f4fb54ed9d6ad1fbab43d

Contents?: true

Size: 994 Bytes

Versions: 3

Compression:

Stored size: 994 Bytes

Contents

require 'sphere_engine/rest/request'

module SphereEngine
  module REST
    module Utils
    private
      def perform_get_requests_of_problems_service(path, options = {})
        perform_request(:get, :problems, path, options)
      end

      def perform_get_requests_of_compĂ­lers_service(path, options = {})
        perform_request(:get, :compilers, path, options)
      end

      def perform_post_requests_of_problems_service(path, options = {})
        perform_request(:post, :problems, path, options)
      end

      def perform_post_requests_of_compĂ­lers_service(path, options = {})
        perform_request(:post, :compilers, path, options)
      end

      def perform_put_requests_of_problems_service(path, options = {})
        perform_request(:put, :problems, path, options)
      end

      def perform_request(request_method, service, path, options = {})
        SphereEngine::REST::Request.new(self, request_method, service, path, options).perform
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sphere_engine-1.1.0 lib/sphere_engine/rest/utils.rb
sphere_engine-1.0.0 lib/sphere_engine/rest/utils.rb
sphere_engine-1.3.0.pre lib/sphere_engine/rest/utils.rb